10 defined(
'JPATH_PLATFORM') or die;
29 protected $_root = null;
37 protected $_current = null;
44 public function __construct()
48 $this->_root =
new JNode(
'ROOT');
49 $this->_current = & $this->_root;
62 public function addChild(&$node, $setCurrent =
false)
66 $this->_current->addChild($node);
69 $this->_current = &$node;
80 public function getParent()
84 $this->_current = &$this->_current->getParent();
94 public function reset()
98 $this->_current = &$this->_root;