public function renderState()
{
$this->_buildPath();
$retval = $this->_quickWarp();
$retval .= '<div class="clearfloat"></div>';
$retval .= '<ul>';
$retval .= $this->_fastFilterHtml($this->_tree);
if ($GLOBALS['cfg']['NavigationTreeEnableExpansion']) {
$retval .= $this->_controls();
}
$retval .= '</ul>';
$retval .= $this->_getPageSelector($this->_tree);
$this->groupTree();
$retval .= "<div id='pma_navigation_tree_content'><ul>";
$children = $this->_tree->children;
usort($children, array('PMA\\libraries\\navigation\\NavigationTree', 'sortNode'));
$this->_setVisibility();
for ($i = 0, $nbChildren = count($children); $i < $nbChildren; $i++) {
if ($i == 0) {
$retval .= $this->_renderNode($children[0], true, 'first');
} else {
if ($i + 1 != $nbChildren) {
$retval .= $this->_renderNode($children[$i], true);
} else {
$retval .= $this->_renderNode($children[$i], true, 'last');
}
}
}
$retval .= "</ul></div>";
return $retval;
}