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');
 }
 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');
 }
 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');
 }
 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();
 }