コード例 #1
0
 public function __construct() {
     parent::__construct();
     $this->mailTemplateFile = 'merchant_on_commission_approved.stpl';
     $this->isHtmlMail = true;
     $this->templateName = Gpf_Lang::_runtime('Merchant - Commission approved');
     $this->subject = Gpf_Lang::_runtime('Commission approved');
 }
コード例 #2
0
 public function __construct() {
     parent::__construct();
     $this->mailTemplateFile = 'affiliate_on_change_commission_status.stpl';
     $this->isHtmlMail = true;
     $this->templateName = Gpf_Lang::_runtime('Affiliate - On change  Sale / Lead status');
     $this->subject = Gpf_Lang::_runtime('Change sale / lead status');
 }
コード例 #3
0
 public function __construct() {
     parent::__construct();
     $this->mailTemplateFile = 'affiliate_on_new_sale.stpl';
     $this->isHtmlMail = true;
     $this->templateName = Gpf_Lang::_runtime('Affiliate - New Sale / Lead');
     $this->subject = Gpf_Lang::_runtime('New sale / lead');
 }
コード例 #4
0
 protected function setVariableValues() {
     $quickTaskGroup = new Gpf_Tasks_QuickTaskGroup();
     $this->setVariable('sale_approve_link', 
                         $this->createApproveDeclineTask($quickTaskGroup, Pap_Common_Constants::STATUS_APPROVED));
     $this->setVariable('sale_decline_link',
                         $this->createApproveDeclineTask($quickTaskGroup, Pap_Common_Constants::STATUS_DECLINED));
     parent::setVariableValues();
 }   
 protected function sendEmail(Pap_Mail_SaleMail $mailTemplate, $user, Pap_Common_Transaction $transaction, $recipient) {
     $mailTemplate->setUser($user);
     $mailTemplate->setTransaction($transaction);
     $mailTemplate->addRecipient($recipient);
     $mailTemplate->send();
 }