芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/site/libraries/joomla/base/tree.php
_root = new JNode('ROOT'); $this->_current = & $this->_root; } /** * Method to add a child * * @param array $node. * @param boolean $setCurrent * * @return mixed * * @since 11.1 */ function addChild(&$node, $setCurrent = false) { $this->_current->addChild($node); if ($setCurrent) { $this->_current = &$node; } } /** * Method to get the parent * * @return void * * @since 11.1 */ function getParent() { $this->_current = &$this->_current->getParent(); } /** * Method to get the parent * * @return void * * @since 11.1 */ function reset() { $this->_current = &$this->_root; } }