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 Object DAO object on sucess, null otherwise * * @static */ public static function setIsActive($id, $is_active) { CRM_Core_Error::fatal(); } /** * Delete preference dates * * @param int $id * * @static */ public static function del($id) { CRM_Core_Error::fatal(); } }