copyValues($params); if ($dao->find(TRUE)) { CRM_Core_DAO::storeValues($dao, $defaults); return $dao; } return NULL; } /** * 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 void * DAO object on sucess, null otherwise * */ public static function setIsActive($id, $is_active) { CRM_Core_Error::fatal(); } /** * Delete preference dates * * @param int $id * */ public static function del($id) { CRM_Core_Error::fatal(); } }