protected function setVariableValues() {
     $quickTaskGroup = new Gpf_Tasks_QuickTaskGroup();
     $this->setVariable('affiliate_join_campaign_approve_link', 
                         $this->createApproveDeclineTask($quickTaskGroup, Pap_Common_Constants::STATUS_APPROVED));
     $this->setVariable('affiliate_join_campaign_decline_link', 
                         $this->createApproveDeclineTask($quickTaskGroup, Pap_Common_Constants::STATUS_DECLINED));
     parent::setVariableValues();
 }   
 public function __construct() {
     parent::__construct();
     $this->mailTemplateFile = 'on_merchant_decline_affiliate_to_campaign.stpl';
     $this->templateName = Gpf_Lang::_runtime('Affiliate - Affiliate declined in campaign');
     $this->subject = Gpf_Lang::_runtime('You have been declined in campaign');
 }
 public function __construct() {
     parent::__construct();
     $this->mailTemplateFile = 'invite_to_campaign.stpl';
     $this->templateName = Gpf_Lang::_runtime('Affiliate - Invite affiliate to campaign');
     $this->subject = Gpf_Lang::_runtime('You are invited to campaign');
 }
Example #4
0
 private function sendMailTo(Pap_Mail_CampaignMailBase $mail, Pap_Common_User $user, $recipient) {
     $mail->setUser($user);
     $mail->addRecipient($recipient);
     $mail->send();
 }