Config_Container::searchPath()

Config_Container::searchPath() -- Finds a node using XPATH like format

大纲

require_once 'Config/Container.php';

mixed Config_Container::searchPath (mixed $args)

基本描述

This method tries to find an item by following a given path from the current container.

This method can only be called on an 对象 of type 'section'. 注意 that root is a section. This method is recursive.

This method takes as many parameters as is needed to define your path to the requested item. The format is 数组 (item1, item2, ..., itemN). Items can be strings or arrays. Strings will match the item name, while arrays will match 'name' and/or 'attributes' properties of the requested item.

参数

mixed $args

Strings or arrays of item to match in the order they will be matched, separated by commas

返回值

mixed - reference to item found or FALSE when not found

注意

该函数不能被静态调用。

例子