/** * 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); }
/** * Configure a storage method. * @param string $name The name of the storage method. * @param mixed $config The configuration of the storage method. */ function ConfigureStorageMethod($pclass, $name, &$config) { $cf =& GetStorageMethods($pclass); $cf->set(GetService($config, 'StorageMethod'), $name); }