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, $res, and array.
52 $query =
'UPDATE ' . self::$table_tree .
' SET lft = %s WHERE child = %s AND tree = %s';
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';
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
◆ getChildIds()
static ilDBUpdate4963::getChildIds |
( |
|
$a_node | ) |
|
|
staticprivate |
Get node child ids type $ilDB.
- Parameters
-
- Returns
- type
Definition at line 87 of file class.ilDBUpdate4963.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
91 $query =
'SELECT * FROM ' . self::$table_tree .
92 ' WHERE parent = ' . $ilDB->quote($a_node,
'integer') .
' ' .
93 'AND tree = ' . $ilDB->quote(self::$tree_id,
'integer');
98 $childs[] =
$row->child;
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
◆ 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: