Class ilDBUpdate4950.
More...
Class ilDBUpdate4950.
Definition at line 7 of file class.ilDBUpdate4963.php.
◆ __renumber()
static ilDBUpdate4963::__renumber |
( |
|
$node_id = 1 , |
|
|
|
$i = 1 |
|
) |
| |
|
staticprivate |
This method is private.
Always call ilTree->renumber() since it locks the tree table renumber left/right values and close the gaps in numbers (recursive) private
- Parameters
-
integer | node_id where to start (usually the root node) |
integer | first left value of start node (usually 1) |
- Returns
- integer current left value of recursive call
Definition at line 52 of file class.ilDBUpdate4963.php.
References $ilDB, $query, $res, and array.
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';
Create styles array
The data for the language used.
◆ getChildIds()
static ilDBUpdate4963::getChildIds |
( |
|
$a_node | ) |
|
|
staticprivate |
◆ renumberBookmarkTree()
static ilDBUpdate4963::renumberBookmarkTree |
( |
| ) |
|
|
static |
Wrapper for renumber.
This method locks the table tree (recursive) public
- Parameters
-
integer | node_id where to start (usually the root node) |
integer | first left value of start node (usually 1) |
- Returns
- integer current left value of recursive call
Definition at line 22 of file class.ilDBUpdate4963.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
26 self::$table_tree =
"bookmark_tree";
29 $query =
'SELECT tree FROM '.self::$table_tree .
35 self::$tree_id =
$row->tree;
◆ $gap
◆ $table_tree
ilDBUpdate4963::$table_tree |
|
staticprivate |
◆ $tree_id
The documentation for this class was generated from the following file: