require_once 'Config/Container.php';
object Config_Container::createDirective (string $name, string $content [, mixed $attributes = NULL [, string $where = 'bottom' [, mixed $target = NULL]]])
object Config_Container::createDirective
The current item must be a section. This is a helper method that calls createItem()
Name of new directive
Content of new directive
Directive 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 directive using createDirective()
$section =& new Config_Container('section', 'conf'); $section->createDirective('user', 'mansion');