ts('Contact'), 'civicrm_group' => ts('Group'), ]; } /** * @param array $params * * @return CRM_ACL_DAO_EntityRole */ public static function create(&$params) { return self::writeRecord($params); } /** * @param array $params * @param $defaults */ public static function retrieve(&$params, &$defaults) { CRM_Core_DAO::commonRetrieve(__CLASS__, $params, $defaults); } /** * Update the is_active flag in the db. * * @param int $id * Id of the database record. * @param bool $is_active * Value we want to set the is_active field. * * @return bool * true if we found and updated the object, else false */ public static function setIsActive($id, $is_active) { return CRM_Core_DAO::setFieldValue(__CLASS__, $id, 'is_active', $is_active); } /** * Delete Dedupe Entity Role records. * * @param int $entityRoleId * ID of the EntityRole record to be deleted. * @deprecated */ public static function del($entityRoleId) { return self::deleteRecord(['id' => $entityRoleId]); } }