require_once 'Config.php';
mixed Config::setRoot (object &$rootContainer)
mixed Config::setRoot
This method will replace the current child of the root Config_Container object by the given object.
Container to be used as the first child of root
boolean - Returns TRUE on success, FALSE on failure.
This function can not be called statically.
Example 31-1. Using setRoot()
$container =& new Config_Container('section', 'conf'); $config = new Config(); $root =& $config->setRoot($container);