* @deprecated
*/
public static function del($printLabelId) {
+ CRM_Core_Error::deprecatedFunctionWarning('deleteRecord');
self::deleteRecord(['id' => $printLabelId]);
}
*/
public function postProcess() {
if ($this->_action & CRM_Core_Action::DELETE) {
- CRM_Badge_BAO_Layout::del($this->_id);
+ CRM_Badge_BAO_Layout::deleteRecord(['id' => $this->_id]);
CRM_Core_Session::setStatus(ts('Selected badge layout has been deleted.'), ts('Record Deleted'), 'success');
return;
}
* @return CRM_Batch_DAO_EntityBatch
*/
public static function del($params) {
+ CRM_Core_Error::deprecatedFunctionWarning('deleteRecord');
if (!is_array($params)) {
$params = ['id' => $params];
}
* @return CRM_Case_DAO_CaseType
*/
public static function del($caseTypeId) {
+ CRM_Core_Error::deprecatedFunctionWarning('deleteRecord');
return static::deleteRecord(['id' => $caseTypeId]);
}
* @deprecated
*/
public static function add(array $params): CRM_Contact_DAO_GroupContact {
+ CRM_Core_Error::deprecatedFunctionWarning('writeRecord');
return self::writeRecord($params);
}
// As of Aug 2020 it's not called from anywhere so we can remove the below code after some time
CRM_Core_Error::deprecatedFunctionWarning('Use the GroupContact API');
- return self::add($params);
+ return self::writeRecord($params);
}
/**