示例#1
0
 /**
  * Inserts the sibling node for existing node? identified by $refId.
  * Parameter $pos points a position of insertion
  *     BEFORE - before ref node
  *     AFTER - after ref node
  *
  * Inserting a node before root will throw exception
  *
  * @param int $id
  * @param array|Axis_NSTree_Node $data
  * @return Axis_NSTree_Node
  * @throws Axis_NSTree_Exception
  */
 public function insertSibling($refId, $data, $pos = self::BEFORE)
 {
     $newId = $this->_table->allocSibling($refId, $pos);
     return $this->_bindNode($newId, $data);
 }