protected getChildrenRecursive ( string $name, array &$result ) | ||
$name | string | the name of the item whose children are to be looked for. |
$result | array | the children and grand children (in array keys) |
protected function getChildrenRecursive($name, &$result)
{
if (isset($this->children[$name])) {
foreach ($this->children[$name] as $child) {
$result[$child->name] = true;
$this->getChildrenRecursive($child->name, $result);
}
}
}