PMA\libraries\navigation\nodes\Node::getChild PHP Method

getChild() public method

Returns a child node given it's name
public getChild ( string $name, boolean $real_name = false ) : false | Node
$name string The name of requested child
$real_name boolean Whether to use the "real_name" instead of "name" in comparisons
return false | Node The requested child node or false, if the requested node cannot be found
    public function getChild($name, $real_name = false)
    {
        if ($real_name) {
            foreach ($this->children as $child) {
                if ($child->real_name == $name) {
                    return $child;
                }
            }
        } else {
            foreach ($this->children as $child) {
                if ($child->name == $name) {
                    return $child;
                }
            }
        }
        return false;
    }