Config_Container::getContent | Config_Container::getItemIndex |
Config | |
PEAR Manual | |
require_once 'Config/Container.php'; |
mixed Config_Container::getItem (
string $type = NULL
, string $name = NULL
, mixed $content = NULL
, array $attributes = NULL
, int $index = -1
)
This method tries to find the items that respond to the specified parameters.
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.
type of item: directive , section , comment , blank ...
item name
find item with this content
find item with attribute set to the given value
index of the item in the returned object list. If it is not set, will try to return the last item with this name.
mixed - reference to item found or FALSE when not found
This function can not be called statically.
A few examples on how to find items using getItem()
|
Config_Container::getContent | Config_Container::getItemIndex |
Config | |
PEAR Manual | |