/** * takes an associative array and creates a contact object * * the function extract all the params it needs to initialize the create a * contact object. the params array could contain additional unused name/value * pairs * * @param array $params (reference ) an assoc array of name/value pairs * @param array $ids (reference ) the array that holds all the db ids * * @return object CRM_Core_DAO_Meeting object * @access public * @static */ function add(&$params, &$ids) { if (!CRM_Core_BAO_Meeting::dataExists($params)) { return null; } $meeting =& new CRM_Core_DAO_Meeting(); $meeting->copyValues($params); $meeting->id = CRM_Utils_Array::value('meeting', $ids); return $meeting->save(); }