PMA\libraries\navigation\NavigationTree::groupTree PHP Méthode

groupTree() public méthode

Recursively groups tree nodes given a separator
public groupTree ( mixed $node = null ) : void
$node mixed The node to group or null to group the whole tree. If passed as an argument, $node must be of type CONTAINER
Résultat void
    public function groupTree($node = null)
    {
        if (!isset($node)) {
            $node = $this->_tree;
        }
        $this->groupNode($node);
        foreach ($node->children as $child) {
            $this->groupTree($child);
        }
    }