protected function D::descendList in QueryPath 6
Same name and namespace in other branches
- 7.3 qpa/qpa.phpunit.inc \D::descendList()
- 7.2 qpa/qpa.phpunit.inc \D::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.
1 call to D::descendList()
- D::find in qpa/
qpa.phpunit.inc
File
- qpa/
qpa.phpunit.inc, line 100
Class
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;
}