PMA\libraries\navigation\NavigationTree::_findTreeMatch PHP Method

_findTreeMatch() private method

Finds whether given tree matches this tree.
private _findTreeMatch ( array $tree, array $paths ) : boolean
$tree array Tree to check
$paths array Paths to check
return boolean
    private function _findTreeMatch($tree, $paths)
    {
        $match = false;
        foreach ($tree as $path) {
            $match = true;
            foreach ($paths as $key => $part) {
                if (!isset($path[$key]) || $part != $path[$key]) {
                    $match = false;
                    break;
                }
            }
            if ($match) {
                break;
            }
        }
        return $match;
    }