private function _buildPath()
{
$retval = $this->_tree;
// Add all databases unconditionally
$data = $this->_tree->getData('databases', $this->_pos, $this->_searchClause);
$hiddenCounts = $this->_tree->getNavigationHidingData();
foreach ($data as $db) {
$node = NodeFactory::getInstance('NodeDatabase', $db);
if (isset($hiddenCounts[$db])) {
$node->setHiddenCount($hiddenCounts[$db]);
}
$this->_tree->addChild($node);
}
// Whether build other parts of the tree depends
// on whether we have any paths in $this->_aPath
foreach ($this->_aPath as $key => $path) {
$retval = $this->_buildPathPart($path, $this->_pos2_name[$key], $this->_pos2_value[$key], isset($this->_pos3_name[$key]) ? $this->_pos3_name[$key] : '', isset($this->_pos3_value[$key]) ? $this->_pos3_value[$key] : '');
}
return $retval;
}