Config::setRoot

Config::setRoot() – Set content of root Config_container object

Synopsis

require_once 'Config.php';

mixed Config::setRoot ( object &$rootContainer )

Description

This method will replace the current child of the root Config_Container object by the given object.

Parameter

object $rootContainer

Container to be used as the first child of root

Return value

boolean - Returns TRUE on success, FALSE on failure.

Note

This function can not be called statically.

Example

Using setRoot()

<?php
$container 
=& new Config_Container('section''conf');

$config = new Config();
$root =& $config->setRoot($container);
?>
Registers a custom Config container (Previous) Write container content to datasource (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.