DB_NestedSet::convertTreeModel (Previous) (Next) DB_NestedSet::createRightNode

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

DB_NestedSet::createLeftNode()

DB_NestedSet::createLeftNode()  -- Creates a node before a given node

Beschreibung


 +-- root1
 |
 +-\ root2
 | |
 | |-- subnode2 [new]
 | |-- subnode1 [target]
 | |-- subnode3
 |
 +-- root3

Parameter

integer $id

Target node ID

array $values

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

boolean $returnID

Tell the method to return a node id instead of an object. ATTENTION: That the method defaults to return an object instead of the node id has been overseen and is basically a bug. We have to keep this to maintain BC. You will have to set $returnID to TRUE to make it behave like the other creation methods. This flaw will get fixed with the next major version.

Rückgabewert

returns The node id or false on error

Fehler-Meldungen

throws no exceptions thrown

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

DB_NestedSet::convertTreeModel (Previous) (Next) DB_NestedSet::createRightNode

Download Documentation Last updated: Sun, 28 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.