main/app/Manager/CacheManager.php
public function getParameter($parameter)
    {
        $isRefreshed = false;

        if (!$this->cacheExists()) {
            $this->refresh();
            $isRefreshed = true;
        }

        $values = parse_ini_file($this->cachePath);
        $return = null;

        if (isset($values[$parameter])) {
            $return = $values[$parameter];
        } else {
            if (!$isRefreshed) {
                $this->refresh();
                $values = parse_ini_file($this->cachePath);

                if (isset($values[$parameter])) {
                    $return = $values[$parameter];
                }
            }
        }

        return $return ? $return : false;
    }
public function getParameter($parameter)
    {
        $isRefreshed = false;

        if (!$this->cacheExists()) {
            $this->refresh();
            $isRefreshed = true;
        }

        $values = parse_ini_file($this->cachePath);
        $return = null;

        if (isset($values[$parameter])) {
            $return = $values[$parameter];
        } else {
            if (!$isRefreshed) {
                $this->refresh();
                $values = parse_ini_file($this->cachePath);

                if (isset($values[$parameter])) {
                    $return = $values[$parameter];
                }
            }
        }

        return $return ? $return : false;
    }
public function getParameter ( $ parameter ) { $ isRefreshed = false ; if ( ! $ this -> cacheExists ( ) ) { $ this -> refresh ( ) ; $ isRefreshed = true ; } $ values = parse_ini_file ( $ this -> cachePath ) ; $ return = null ; if ( isset ( $ values [ $ parameter ] ) ) { $ return = $ values [ $ parameter ] ; } else { if ( ! $ isRefreshed ) { $ this -> refresh ( ) ; $ values = parse_ini_file ( $ this -> cachePath ) ; if ( isset ( $ values [ $ parameter ] ) ) { $ return = $ values [ $ parameter ] ; } } } return $ return ? $ return : false ; }
Read a value from the claroline cache.

@param $parameter

@throws \Exception

@return mixed
Read a value from the claroline cache .