示例#1
0
 /**
  * Appends the child node to existed node, identified by $parentId
  * $pos points a position
  *     AT_END - at the end of children list
  *  AT_BEGIN - at the beginig of children list
  *
  * @param int $parentId
  * @param array|Axis_NSTree_Node $data
  * @return Axis_NSTree_Node
  */
 public function appendChild($parentId, $data, $pos = self::AT_END)
 {
     $newId = $this->_table->allocChild($parentId, $pos);
     return $this->_bindNode($newId, $data);
 }