CRM_Utils_System::flushCache();
if ($this->_action & CRM_Core_Action::DELETE) {
- CRM_Core_BAO_Job::del($this->_id);
+ CRM_Core_BAO_Job::deleteRecord(['id' => $this->_id]);
CRM_Core_Session::setStatus("", ts('Scheduled Job Deleted.'), "success");
return;
}
* @return CRM_Core_DAO_Domain
*/
public static function create($params) {
+ CRM_Core_Error::deprecatedFunctionWarning('writeRecord');
return self::writeRecord($params);
}
* @return bool
*/
public static function del($id) {
+ CRM_Core_Error::deprecatedFunctionWarning('deleteRecord');
return (bool) self::deleteRecord(['id' => $id]);
}
* @return bool
*/
public static function del($id) {
+ CRM_Core_Error::deprecatedFunctionWarning('deleteRecord');
return (bool) self::deleteRecord(['id' => $id]);
}
$ufField->find();
while ($ufField->fetch()) {
//enable/ disable profile
- CRM_Core_BAO_UFField::del($ufField->id);
+ CRM_Core_BAO_UFField::deleteRecord(['id' => $ufField->id]);
}
}
* @deprecated
*/
public static function del($id) {
+ CRM_Core_Error::deprecatedFunctionWarning('deleteRecord');
return (bool) static::deleteRecord(['id' => $id]);
}
* @return array
*/
public static function create($params) {
+ CRM_Core_Error::deprecatedFunctionWarning('writeRecord');
if (array_key_exists("domain_id", $params) === FALSE) {
$params["domain_id"] = CRM_Core_Config::domainID();
}
* @return CRM_Core_DAO_WordReplacement
*/
public static function del($id) {
+ CRM_Core_Error::deprecatedFunctionWarning('deleteRecord');
return static::deleteRecord(['id' => $id]);
}
if ($this->_action & CRM_Core_Action::DELETE) {
$fieldValues = ['uf_group_id' => $this->_gid];
CRM_Utils_Weight::delWeight('CRM_Core_DAO_UFField', $this->_id, $fieldValues);
- $deleted = CRM_Core_BAO_UFField::del($this->_id);
+ $deleted = CRM_Core_BAO_UFField::deleteRecord(['id' => $this->_id]);
//update group_type every time. CRM-3608
if ($this->_gid && $deleted) {
public function postProcess() {
if ($this->_action & CRM_Core_Action::DELETE) {
$title = CRM_Core_BAO_UFGroup::getTitle($this->_id);
- CRM_Core_BAO_UFGroup::del($this->_id);
+ CRM_Core_BAO_UFGroup::deleteRecord(['id' => $this->_id]);
CRM_Core_Session::setStatus(ts("Your CiviCRM Profile '%1' has been deleted.", [1 => $title]), ts('Profile Deleted'), 'success');
}
elseif ($this->_action & CRM_Core_Action::DISABLE) {
throw new CRM_Core_Exception('Invalid value for field_id.');
}
- $result = CRM_Core_BAO_UFField::del($fieldId);
+ $result = CRM_Core_BAO_UFField::deleteRecord(['id' => $fieldId]);
$fieldsType = CRM_Core_BAO_UFGroup::calculateGroupType($ufGroupId, TRUE);
CRM_Core_BAO_UFGroup::updateGroupTypes($ufGroupId, $fieldsType);