/** * Configure a data source. * @param string $name The name of the data source. * @param mixed $config The configuration of the data source. */ function ConfigureDataSource($name, &$config) { $cf =& GetDataSources(); $cf->set(GetService(GetConfigurationRef($config), 'DataSource'), $name); }
/** * Get a configuration object. * @param mixed $initialConfig The external configuration object or array to * use for setting up initial values. May be an existing Configuration * object, in which case no other is constructed. */ function &GetConfiguration($initialConfig = NULL) { return GetConfigurationRef($initialConfig); }
/** * Constructor. * @param mixed $config An object, array, or Configuration to sets up * initial log configuration. If not supplied, the global * $ATSUMI_LOGCONFIG is used. */ function AtsumiLogger(&$config) { global $ATSUMI_LOGCONFIG; $this->config =& GetConfigurationRef($config); $this->config->setDefault(5, 'detail'); }
/** * Initialize this service's configuration. * @param mixed $config The Configuration object or core representation * for configuring this servce. */ function init(&$config) { $this->config =& GetConfigurationRef($config); }