Esempio n. 1
0
 private function getMail($name)
 {
     switch ($name) {
         case 'FundsLevelUpgrade':
             return MailHelper::sendFundsLevelUpgrade(\Member::getByNum('102'), \Member::getByNum('105'));
         case 'FeeIncomeReferrer':
             return MailHelper::sendFeeIncomeReferrer(\Member::getByNum('102'), \Member::getByNum('105'));
         case 'FeeIncome':
             $member102 = \Member::getByNum('102');
             $member102->setReferrerId(\Member::getByNum('105')->getId());
             // Do not save!!
             return MailHelper::sendFeeIncome($member102);
         case 'FreeSignupConfirm':
             $member102 = \Member::getByNum('102');
             $member102->setReferrerId(\Member::getByNum('105')->getId());
             // Do not save!!
             return MailHelper::sendFreeSignupConfirm($member102);
         case 'NewFreeRecruitmentCongrats':
             return MailHelper::sendNewFreeRecruitmentCongrats(\Member::getByNum('102'), \Member::getByNum('105'));
     }
 }