static function getConfig() { $dao = new CRM_Booking_DAO_BookingConfig(); $dao->find(); $config = array(); while ($dao->fetch()) { CRM_Core_DAO::storeValues($dao, $config); return $config; } }
/** * returns the list of fields that can be exported * * @access public * return array * @static */ static function &export($prefix = false) { if (!self::$_export) { self::$_export = array(); $fields = self::fields(); foreach ($fields as $name => $field) { if (CRM_Utils_Array::value('export', $field)) { if ($prefix) { self::$_export['booking_config'] =& $fields[$name]; } else { self::$_export[$name] =& $fields[$name]; } } } } return self::$_export; }