Horde_Registry::importConfig PHP Method

importConfig() public method

Reads the configuration values for the given application and imports them into the global $conf variable.
public importConfig ( string $app )
$app string The application name.
    public function importConfig($app)
    {
        /* Make sure Horde is always loaded. */
        if (!isset($this->_cache['conf']['horde'])) {
            $this->_cache['conf']['horde'] = new Horde_Registry_Hordeconfig(array('app' => 'horde'));
        }
        if (!isset($this->_cache['conf'][$app])) {
            $this->_cache['conf'][$app] = new Horde_Registry_Hordeconfig_Merged(array('aconfig' => new Horde_Registry_Hordeconfig(array('app' => $app)), 'hconfig' => $this->_cache['conf']['horde']));
        }
        $GLOBALS['conf'] = $this->_cache['conf'][$app]->toArray();
    }