ts('Contact'), 'civicrm_group' => ts('Group'), ]; } /** * @param array $params * * @return CRM_ACL_BAO_ACLEntityRole */ public static function create(&$params) { return self::writeRecord($params); } /** * Retrieve DB object and copy to defaults array. * * @param array $params * Array of criteria values. * @param array $defaults * Array to be populated with found values. * * @return self|null * The DAO object, if found. * * @deprecated */ public static function retrieve($params, &$defaults) { return self::commonRetrieve(self::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]); } }