function krumo::_config

Returns values from Krumo's configuration

@access private @static

Parameters

string $group:

string $name:

mixed $fallback:

Return value

mixed

File

krumo/class.krumo.php, line 637

Class

krumo
Krumo API

Code

private static function _config($group, $name, $fallback = null) {
    static $_config = array();
    // not loaded ?
    //
    if (empty($_config)) {
        $_config = (array) @parse_ini_file(KRUMO_DIR . 'krumo.ini', true);
    }
    // exists ?
    //
    return isset($_config[$group][$name]) ? $_config[$group][$name] : $fallback;
}