/** * takes an associative array and creates a resource config option= object * * the function extract all the params it needs to initialize the create a * resource 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 the array that holds all the db ids * * @return object CRM_Booking_BAO_ResourceConfigOption object * @access public * @static */ static function create(&$params) { $configOption = new CRM_Booking_DAO_ResourceConfigOption(); $configOption->copyValues($params); return $configOption->save(); }