Horde_Config::__defaultRaw PHP Метод

__defaultRaw() защищенный Метод

It does NOT return the actual value, but the PHP expression as used in the configuration file.
protected __defaultRaw ( string $ctx, mixed $default ) : array
$ctx string A string representing the key of the configuration array to return.
$default mixed The default value to return if the key wasn't found.
Результат array First element: either the value of the configuration array's requested key or the default value if the key wasn't found. Second element: whether the returned value was the default value.
    protected function __defaultRaw($ctx, $default)
    {
        $ctx = explode('|', $ctx);
        $pattern = '/^\\$conf\\[\'' . implode("'\\]\\['", $ctx) . '\'\\] = (.*);\\r?$/m';
        return preg_match($pattern, $this->getPHPConfig(), $matches) ? array($matches[1], false) : array($default, true);
    }