Beispiel #1
0
/**
 * 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);
}
Beispiel #2
0
/**
 * 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);
}
Beispiel #3
0
 /**
  * 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');
 }
Beispiel #4
0
 /**
  * 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);
 }