protected function QPACssEventHandler::descendList in QueryPath 6
Same name and namespace in other branches
- 7.3 qpa/qpa.classes.inc \QPACssEventHandler::descendList()
- 7.2 qpa/qpa.classes.inc \QPACssEventHandler::descendList()
Descend through a list and find matches.
Parameters
$name: Name of item to match.
$value: An optional value that (if supplied) also must be matched before a found item is returned as a match.
$list: List of items to search. This should be any traversable that is numerically indexed. The assumption is that at least some of this list's items will be associative arrays.
Return value
$matches Returns the list of items that matched. Note that for any two items in matches, one item may actually be a child of the other item.
3 calls to QPACssEventHandler::descendList()
File
- qpa/
qpa.classes.inc, line 86 - qpa.classes
Class
- QPACssEventHandler
- qpa.classes
Code
protected function descendList($name, $value = NULL, $list = NULL) {
if (!isset($list)) {
$list = $this->matches;
}
$matches = array();
foreach ($list as $li) {
$this
->descender($name, $li, $value, $matches);
}
return $matches;
}