code/base/tree.php
public function addChild(&$node, $setCurrent = false)
	{
		JLog::add('JTree::addChild() is deprecated.', JLog::WARNING, 'deprecated');

		$this->_current->addChild($node);

		if ($setCurrent)
		{
			$this->_current = &$node;
		}
	}
public function addChild(&$node, $setCurrent = false)
	{
		JLog::add('JTree::addChild() is deprecated.', JLog::WARNING, 'deprecated');

		$this->_current->addChild($node);

		if ($setCurrent)
		{
			$this->_current = &$node;
		}
	}
public function addChild ( & $ node , $ setCurrent = false ) { JLog :: add ( 'JTree::addChild() is deprecated.' , JLog :: WARNING , 'deprecated' ) ; $ this -> _current -> addChild ( $ node ) ; if ( $ setCurrent ) { $ this -> _current = & $ node ; } }
Method to add a child

@param   array    &$node       The node to process
@param   boolean  $setCurrent  True to set as current working node

@return  mixed

@since   11.1
Method to add a child