/** * takes an associative array and creates a case object * * the function extract all the params it needs to initialize the create a * case object. the params array could contain additional unused name/value * pairs * * @param array $params (reference ) an assoc array of name/value pairs * * @internal param array $ids the array that holds all the db ids * * @return object CRM_Case_BAO_Case object * @access public * @static */ static function add(&$params) { $caseDAO = new CRM_Case_DAO_Case(); $caseDAO->copyValues($params); return $caseDAO->save(); }