previousConfig::registerConfigType (Previous) (Next) Config::writeConfignext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Config::setRoot

Config::setRoot() – Fixe le contentu de l'objet racine de Config_container

Synopsis

require_once 'Config.php';

mixed Config::setRoot ( object &$rootContainer )

Description

Cette méthode remplacera l'enfant courant de la racine de l'objet Config_Container par l'objet donné.

Parameter

object $rootContainer

Conteneur à employer en tant que premier enfant de la racine.

Return value

boolean - Returns TRUE on success, FALSE on failure.

Note

This function can not be called statically.

Example

Exemple avec setRoot()

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

$config = new Config();
$root =& $config->setRoot($container);
?>
previousConfig::registerConfigType (Previous) (Next) Config::writeConfignext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.