DB_NestedSet::apiVersion (Previous) (Next) DB_NestedSet::createLeftNode

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

DB_NestedSet::convertTreeModel()

DB_NestedSet::convertTreeModel()  -- Convert a <1.3 tree into a 1.3 tree format

Beschreibung

This will convert the tree into a format needed for some new features in 1.3. Your <1.3 tree will still work without converting but some new features like preorder sorting won't work as expected.

Usage: - Create a new node table (tb_nodes2) from the current node table (tb_nodes1) (only copy the structure). - Create a nested set instance of the 'old' set (NeSe1) and one of the new set (NeSe2) - Now you have 2 identical objects where only node_table differs - Call DB_NestedSet::convertTreeModel(&$orig, &$copy); - After that you have a cleaned up copy of tb_nodes1 inside tb_nodes2

Parameter

&$orig

&$copy

integer $_parent

ID of the parent node (private)

object $copy

Object where the new tree is copied to

Rückgabewert

returns True uns success

Fehler-Meldungen

throws no exceptions thrown

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

DB_NestedSet::apiVersion (Previous) (Next) DB_NestedSet::createLeftNode

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.