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 boolean $is_active value we want to set the is_active field * * @return Object DAO object on sucess, null otherwise * * @access public * @static */ static function setIsActive($id, $is_active) { CRM_Core_Error::fatal(); } /** * Function to delete preference dates * * @param int $id * * @access public * @static */ static function del($id) { CRM_Core_Error::fatal(); } }