Config_Container::getItem()
Описание
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.
Параметр
- string $type
type of item: directive, section, comment, blank...
- string $name
item name
- mixed $content
find item with this content
- array $attributes
find item with attribute set to the given value
- integer $index
index of the item in the returned object list. If it is not set, will try to return the last item with this name.
Пример
Пример 33-1. A few examples on how to find items using getItem()
|
Пред. | Начало | След. |
Config_Container::getContent() | Уровень выше | Config_Container::getItemIndex() |