PEAR Manual
Prev |  | Next

# Config::getRoot()

Config::getRoot() -- Return root container for config object

## Synopsis

    require_once 'Config.php';

``object &Config::getRoot` (void)`

## Description

This method returns a reference to the root Config_Container object in the Config object. Use the returned Config_Container object reference to manipulate your configuration data.

## Return value

`object` - a reference to config's root container object

## Note

This function can not be called statically.

## Example

Example 31-1. Using getRoot()
    $config = new Config();
    $root =& $config->getRoot();

Prev | Home | Next
Config::Config() | Up | Config::isConfigTypeRegistered()