src/Config/Config.php
public function getConfig($pPath, $pForceGlobalArray = false)
    {
        if (array_key_exists($pPath, $this->_cache)) {
            return $this->_cache[$pPath];
        }

        if ($this->_cacheEnabled and $pPath != static::CONFIG_CACHE_TYPE_KEY) {
            if ($this->_cacheInstance === NULL) {
                $this->_cacheInstance = Agl::getCache();
            }

            if ($this->_cacheInstance->has('config.' . $pPath)) {
                $this->_cache[$pPath] = $this->_cacheInstance->get('config.' . $pPath);
                return $this->_cache[$pPath];
            }
        }

        $this->_cache[$pPath] = $this->_getConfigValues($pPath, $pForceGlobalArray);

        if ($this->_cacheInstance !== NULL) {
            $this->_cacheInstance->set('config.' . $pPath, $this->_cache[$pPath]);
        }

        return $this->_cache[$pPath];
    }
public function getConfig($pPath, $pForceGlobalArray = false)
    {
        if (array_key_exists($pPath, $this->_cache)) {
            return $this->_cache[$pPath];
        }

        if ($this->_cacheEnabled and $pPath != static::CONFIG_CACHE_TYPE_KEY) {
            if ($this->_cacheInstance === NULL) {
                $this->_cacheInstance = Agl::getCache();
            }

            if ($this->_cacheInstance->has('config.' . $pPath)) {
                $this->_cache[$pPath] = $this->_cacheInstance->get('config.' . $pPath);
                return $this->_cache[$pPath];
            }
        }

        $this->_cache[$pPath] = $this->_getConfigValues($pPath, $pForceGlobalArray);

        if ($this->_cacheInstance !== NULL) {
            $this->_cacheInstance->set('config.' . $pPath, $this->_cache[$pPath]);
        }

        return $this->_cache[$pPath];
    }
public function getConfig ( $ pPath , $ pForceGlobalArray = false ) { if ( array_key_exists ( $ pPath , $ this -> _cache ) ) { return $ this -> _cache [ $ pPath ] ; } if ( $ this -> _cacheEnabled and $ pPath != static :: CONFIG_CACHE_TYPE_KEY ) { if ( $ this -> _cacheInstance === NULL ) { $ this -> _cacheInstance = Agl :: getCache ( ) ; } if ( $ this -> _cacheInstance -> has ( 'config.' . $ pPath ) ) { $ this -> _cache [ $ pPath ] = $ this -> _cacheInstance -> get ( 'config.' . $ pPath ) ; return $ this -> _cache [ $ pPath ] ; } } $ this -> _cache [ $ pPath ] = $ this -> _getConfigValues ( $ pPath , $ pForceGlobalArray ) ; if ( $ this -> _cacheInstance !== NULL ) { $ this -> _cacheInstance -> set ( 'config.' . $ pPath , $ this -> _cache [ $ pPath ] ) ; } return $ this -> _cache [ $ pPath ] ; }
Retrieve a value in the configuration files.

@param string $pPath The configuration path to retrieve
@param array $pForceGlobalArray Return the results in a multidimensional
array
@return mixed The configuration value corresponding to the path
Retrieve a value in the configuration files .