Config_Container::createDirective | Config_Container::createSection |
Config | |
PEAR Manual | |
require_once 'Config/Container.php'; |
object &Config_Container::createItem (
string $type
, mixed $item
, string $content
, array $attributes = NULL
, string $where = 'bottom'
, object $target = NULL
)
This method must be called on a section, the created item can be anything. It adds a new child to the current item. If a position is specified, the child will be created at there. It is recommended to use the helper methods instead of calling this method directly.
type of item: directive , section , comment , blank ...
item name
item content
item attributes
choose a position 'bottom' , 'top' , 'after' , 'before'
needed if you choose 'before' or 'after' for $where
object - reference to new item
Error code | Error value | Meaning | Solution |
" |
This function can not be called statically.
Create some new items using createItem()
|
Config_Container::createDirective | Config_Container::createSection |
Config | |
PEAR Manual | |