require_once 'Config/Container.php';
objectConfig_Container::createSection (string $name [, array $attributes = NULL [, string $where = 'bottom' [, object $target = NULL]]])
objectConfig_Container::createSection
Must be called on a section. This is a helper method that calls createItem()
Name of new section
Section attributes
Where to create the new item ('top', 'bottom', 'before', 'after')
Required only if 'before' or 'after' is used for $where
object - reference to new item
Table 31-1. Possible PEAR_Error values
This function can not be called statically.
Example 31-1. Create a new section using createSection()
$conf =& new Config_Container('section', 'MAIN'); $dbConf =& $conf->createSection('DB'); $dbConf->createDirective('user', 'mansion');