Ejemplo n.º 1
0
 /**
  * Adds a node to this node
  * @param Node $node
  * @return Node
  */
 public function add(Node $node)
 {
     $node->setParent($this->_container);
     // Set the Tree for the node
     if ($this->_container->getTree() instanceof Tree) {
         $node->setTree($this->_container->getTree());
     }
     $this->_nodes[$node->getId()] = $node;
     return $node;
 }