Horde_Registry::loadConfigFile PHP Method

loadConfigFile() public method

This call is cached (a config file is only loaded once, regardless of the $vars value).
Since: 2.12.0
public loadConfigFile ( string $conf_file, mixed $vars = null, string $app = null ) : Horde_Registry_Loadconfig
$conf_file string Configuration file name.
$vars mixed List of config variables to load.
$app string Application.
return Horde_Registry_Loadconfig The config object.
    public function loadConfigFile($conf_file, $vars = null, $app = null)
    {
        if (is_null($app)) {
            $app = $this->getApp();
        }
        if (!isset($this->_cache['cfile'][$app][$conf_file])) {
            $this->_cache['cfile'][$app][$conf_file] = new Horde_Registry_Loadconfig($app, $conf_file, $vars);
        }
        return $this->_cache['cfile'][$app][$conf_file];
    }