protected function set_level($level) {
        $this->level = $level;
        foreach ($this->subtree as $tab) {
            $tab->set_level($level + 1);
        }
    }
protected function set_level($level) {
        $this->level = $level;
        foreach ($this->subtree as $tab) {
            $tab->set_level($level + 1);
        }
    }
protected function set_level ( $ level ) { $ this -> level = $ level ; foreach ( $ this -> subtree as $ tab ) { $ tab -> set_level ( $ level + 1 ) ; } }
Allows to mark each tab's level in the tree before rendering.

@param int $level
Allows to mark each tab s level in the tree before rendering .