*/
public static $mailsProcessed = 0;
- /**
- * Class constructor.
- */
- public function __construct() {
- parent::__construct();
- }
-
/**
* Create mailing job.
*
* Initiate all pending/ready jobs.
*
* @param array $testParams
- * @param string $mode
+ * @param string|null $mode
+ * Either 'sms' or null
*
* @return bool|null
*/
/**
* Post process to determine if the parent job
* as well as the mailing is complete after the run.
- * @param null $mode
+ * @param string|null $mode
+ * Either 'sms' or null
*/
public static function runJobs_post($mode = NULL) {
/**
* before we run jobs, we need to split the jobs
* @param int $offset
- * @param null $mode
+ * @param string|null $mode
+ * Either 'sms' or null
*/
public static function runJobs_pre($offset = 200, $mode = NULL) {
$job = new CRM_Mailing_BAO_MailingJob();
$activityTypeID = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', 'activity_type_id', 'Bulk Email');
}
if (!$activityTypeID) {
- throw new CRM_Core_Execption(ts('No relevant activity type found when recording Mailing Event delivered Activity'));
+ throw new CRM_Core_Exception(ts('No relevant activity type found when recording Mailing Event delivered Activity'));
}
}