* @deprecated
*/
public static function del($id) {
+ CRM_Core_Error::deprecatedFunctionWarning('deleteRecord');
static::deleteRecord(['id' => $id]);
}
CRM_Core_Error::deprecatedWarning('This function is deprecated, use CRM_Mailing_BAO_MailingJob::del instead');
- CRM_Mailing_BAO_MailingJob::del($id);
+ CRM_Mailing_BAO_MailingJob::deleteRecord(['id' => $id]);
}
/**
* @deprecated
*/
public static function del($id) {
+ CRM_Core_Error::deprecatedFunctionWarning('deleteRecord');
static::deleteRecord(['id' => $id]);
}
* @return bool
*/
public static function del($id) {
+ CRM_Core_Error::deprecatedFunctionWarning('deleteRecord');
return (bool) self::deleteRecord(['id' => $id]);
}
$job = new CRM_Mailing_BAO_MailingJob();
$job->mailing_id = $params['id'];
while ($job->fetch()) {
- CRM_Mailing_BAO_MailingJob::del($job->id);
+ CRM_Mailing_BAO_MailingJob::deleteRecord(['id' => $job->id]);
}
}
else {
public function postProcess() {
if ($this->_action & CRM_Core_Action::DELETE) {
- CRM_Mailing_BAO_Mailing::del($this->_mailingId);
+ CRM_Mailing_BAO_Mailing::deleteRecord(['id' => $this->_mailingId]);
CRM_Core_Session::setStatus(ts('Selected mailing has been deleted.'), ts('Deleted'), 'success');
}
elseif ($this->_action & CRM_Core_Action::DISABLE) {
CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.'));
}
- CRM_Mailing_BAO_Mailing::del($this->_mailingId);
+ CRM_Mailing_BAO_Mailing::deleteRecord(['id' => $this->_mailingId]);
CRM_Core_Session::setStatus(ts('Selected mailing has been deleted.'), ts('Deleted'), 'success');
CRM_Utils_System::redirect($context);
}