code/base/node.php
public function addChild(&$child)
	{
		JLog::add('JNode::addChild() is deprecated.', JLog::WARNING, 'deprecated');

		if ($child instanceof Jnode)
		{
			$child->setParent($this);
		}
	}
public function addChild(&$child)
	{
		JLog::add('JNode::addChild() is deprecated.', JLog::WARNING, 'deprecated');

		if ($child instanceof Jnode)
		{
			$child->setParent($this);
		}
	}
public function addChild ( & $ child ) { JLog :: add ( 'JNode::addChild() is deprecated.' , JLog :: WARNING , 'deprecated' ) ; if ( $ child instanceof Jnode ) { $ child -> setParent ( $ this ) ; } }
Add child to this node

If the child already has a parent, the link is unset

@param   JNode  &$child  The child to be added

@return  void

@since   11.1
Add child to this node