This method can only be called on an object of type 'section'. Note that root is a section. This method is not recursive and tries to keep the current structure.
Return: reference to item found or false when not found
Parameters:
string
$type
—
type type of item: directive, section, comment, blank...
mixed
$name
—
name (optional)item name
int
$content
—
index (optional)index of the item in the returned object list. If it is not set, will try to return the last item with this name.
The position is relative to a target object if it is defined. Example: $obj->insertItem('section', 'new section', '', 'top'); $obj->insertItem('comment', 'A comment line', 'before', $servertype);
This method can only be called on an object of type 'section'. This method is not recursive and tries to keep the current structure.
Return: reference to inserted item or PEAR_Error
Parameters:
string
$type
—
type type of item: directive, section, comment, blank...
mixed
$item
—
item item name or item object
string
$content
—
content (optional)item content
string
$where
—
where (optional)position: top, bottom, before or after.