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 48 of file class.ilDBUpdate4963.php.
References $i, $ilDB, $query, and $res.
52 $query =
'UPDATE ' . self::$table_tree .
' SET lft = %s WHERE child = %s AND tree = %s';
53 $res = $ilDB->manipulateF(
$query, array(
'integer',
'integer',
'integer'), array(
60 $childs = self::getChildIds($node_id);
62 foreach ($childs as $child) {
63 $i = self::__renumber($child,
$i + 1);
68 if (count($childs) > 0) {
73 $query =
'UPDATE ' . self::$table_tree .
' SET rgt = %s WHERE child = %s AND tree = %s';
74 $res = $ilDB->manipulateF(
$query, array(
'integer',
'integer',
'integer'), array(
foreach($_POST as $key=> $value) $res
◆ 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 21 of file class.ilDBUpdate4963.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
25 self::$table_tree =
"bookmark_tree";
28 $query =
'SELECT tree FROM ' . self::$table_tree .
33 self::$tree_id =
$row->tree;
foreach($_POST as $key=> $value) $res
◆ $gap
◆ $table_tree
ilDBUpdate4963::$table_tree |
|
staticprivate |
◆ $tree_id
The documentation for this class was generated from the following file: