Exemple #1
0
 /**
  * Add child to this node
  *
  * If the child already has a parent, the link is unset
  *
  * @param   JCategoryNode  $child  The child to be added.
  *
  * @return  void
  *
  * @since   11.1
  */
 public function addChild($child)
 {
     if ($child instanceof JCategoryNode) {
         $child->setParent($this);
     }
 }
 /**
  * Add child to this node
  *
  * If the child already has a parent, the link is unset
  *
  * @param   JCategoryNode  $child  The child to be added.
  *
  * @return  void
  *
  * @since   11.1
  */
 public function addChild(JCategoryNode $child)
 {
     $child->setParent($this);
 }