Config_Container::createSection() – Add section to item


require_once 'Config/Container.php';

objectConfig_Container::createSection ( string $name , array $attributes = null , string $where = 'bottom' , object $target = null )


Must be called on a section. This is a helper method that calls createItem()


string $name

Name of new section

array array $attributes

Section attributes

string $where

Where to create the new item ('top', 'bottom', 'before', 'after')

object $target

Required only if 'before' or 'after' is used for $where

Return value

object - reference to new item


Possible PEAR_Error values
Error code Error value Meaning Solution


This function can not be called statically.


Create a new section using createSection()

=& new Config_Container('section''MAIN');
$dbConf =& $conf->createSection('DB');
Create new child for section item (Previous) Get attribute value of item (Next)
Last updated: Thu, 19 Jan 2017 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.