DB_NestedSet::createRightNode (Previous) (Next) DB_NestedSet::createSubNode

View this page in Last updated: Sun, 07 Sep 2008
English | French | German | Japanese | Plain HTML

DB_NestedSet::createRootNode()

DB_NestedSet::createRootNode()  --  Creates a new root node. If no id is specified then it is either added to the beginning/end of the tree based on the $pos.

Description

Optionally it deletes the whole tree and creates one initial rootnode


 +-- root1 [target]
 |
 +-- root2 [new]
 |
 +-- root3
  

Paramètres

array $values

Hash with param => value pairs of the node (see $this->params)

entier $id

ID of target node (the rootnode after which the node should be inserted)

booléen $first

Danger: Deletes and (re)inits the whole tree - sequences are reset

chaîne de caractères $pos

The position in which to insert the new node.

Valeur retournée

returns The node id or false on error

Valeurs renvoyées

throws no exceptions thrown

Note

Cette fonction ne peut pas être appelée de façon statique.

DB_NestedSet::createRightNode (Previous) (Next) DB_NestedSet::createSubNode

Download Documentation Last updated: Sun, 07 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.