26 self::$table_tree =
"bookmark_tree";
29 $query =
'SELECT tree FROM '.self::$table_tree .
35 self::$tree_id =
$row->tree;
56 $query =
'UPDATE '.self::$table_tree.
' SET lft = %s WHERE child = %s AND tree = %s';
64 $childs = self::getChildIds($node_id);
66 foreach ($childs as $child)
68 $i = self::__renumber($child,$i+1);
73 if (count($childs) > 0)
79 $query =
'UPDATE '.self::$table_tree.
' SET rgt = %s WHERE child = %s AND tree = %s';
97 $query =
'SELECT * FROM '.self::$table_tree .
98 ' WHERE parent = '.$ilDB->quote($a_node,
'integer').
' '.
99 'AND tree = '.$ilDB->quote(self::$tree_id,
'integer');
105 $childs[] =
$row->child;
static renumberBookmarkTree()
Wrapper for renumber.
static getChildIds($a_node)
Get node child ids type $ilDB.
Create styles array
The data for the language used.
static __renumber($node_id=1, $i=1)
This method is private.