english/libraries/joomla/base/node.php
/**
	 * Add child to this node
	 *
	 * If the child already has a parent, the link is unset
	 *
	 * @param JNode the child to be added
	 *
	 * @return
	 * @since       11.1
	 */
Add child to this node
If the child already has a parent, the link is unset

@param JNode the child to be added


Add child to this node If the child already has a parent the link is unset @param JNode the child to be added
function addChild(&$child)
	{
		if ($child instanceof Jnode)
		{
			$child->setParent($this);
		}
	}
function addChild ( & $ child ) { if ( $ child instanceof Jnode ) { $ child -> setParent ( $ this ) ; } }
Add child to this node
 If the child already has a parent, the link is unset
Add child to this node If the child already has a parent the link is unset