Yahoo web space - 548 Part III: Developing E-mail Solutions The campaign

548 Part III: Developing E-mail Solutions The campaign report application, ecampaign_rpt_mngr.php, can be found in ch15/apps directory in the CDROM, which implements the following methods. run() This method calls the showEcampaignReport() to show the report. showEcampaignReport() This method shows the campaign report. It works as follows: . If the campaign ID ($ecampaign_id) is not supplied from the e-campaign user interface, displayed by the e-campaign interface application, the method shows an alert message and returns the user to the user interface page. . By default, it sets the column order of the report to URL ID ($url_id) if the user does not supply any order by clicking on any column heading after the report is shown. . Next, the method creates a Report object, a URL object, and a Campaign object. . The getURLResponse() method of the Report object is called to get the total and unique URL track (click-through) number. . The getUnsubResponse() method of the Report object is called to get the total number of unsubscribers for the current campaign. . The getBounceResponse() method of the Report object is called to get the total number of bounced e-mails for the current campaign. . Finally, the report is displayed using an HTML template. authorize() See the authorize() method in the e-campaign user-interface application called ecampaign_mngr.php for details.

Leave a Reply