ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Defines a system check task. More...
Public Member Functions | |
__construct (ilSCTask $task) | |
getDB () | |
getTask () | |
validateStructure () | |
validate tree structure base on parent relation More... | |
checkStructure () | |
validateDuplicates () | |
checkDuplicates () | |
Check for duplicates. More... | |
findMissingTreeEntries () | |
findMissing () | |
Find missing objects. More... | |
repairMissing () | |
Repair missing objects. More... | |
repairMissingTreeEntries () | |
repair missing tree entries type $ilDB More... | |
Static Public Member Functions | |
static | findDeepestDuplicate () |
find duplicates type $ilDB More... | |
static | repairPK () |
static | getNodeInfo ($a_tree_id, $a_child) |
static | getChilds ($a_tree_id, $a_childs) |
static | findDuplicates ($a_duplicate_id) |
find duplicates type $ilDB More... | |
static | hasDuplicate ($a_child) |
static | deleteDuplicateFromTree ($a_duplicate_id, $a_delete_trash) |
Protected Member Functions | |
repairMissingObject ($a_parent_ref, $a_ref_id) | |
Repair missing object. More... | |
readMissing () | |
Read missing objects in tree Entry in oject_reference but no entry in tree type $ilDB. More... | |
deleteMissingTreeEntry ($a_tree_id, $a_ref_id) | |
Delete missing tree entries from tree table. More... | |
readMissingTreeEntries () | |
Read missing tree entries for referenced objects Entry in tree but no entry in object reference type $ilDB. More... | |
createRecoveryContainer () | |
Create a reccovery folder. More... | |
Static Protected Member Functions | |
static | deleteDuplicate ($tree_id, $dup_id) |
Private Attributes | |
$db = null | |
$task = null | |
Defines a system check task.
Definition at line 9 of file class.ilSCTreeTasks.php.
ilSCTreeTasks::__construct | ( | ilSCTask | $task | ) |
Definition at line 14 of file class.ilSCTreeTasks.php.
References $GLOBALS, and $task.
ilSCTreeTasks::checkDuplicates | ( | ) |
Check for duplicates.
Definition at line 252 of file class.ilSCTreeTasks.php.
References $GLOBALS, $query, $res, $row, array, ilDBConstants\FETCHMODE_OBJECT, and getDB().
Referenced by validateDuplicates().
ilSCTreeTasks::checkStructure | ( | ) |
Definition at line 211 of file class.ilSCTreeTasks.php.
References $GLOBALS, $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by validateStructure().
|
protected |
Create a reccovery folder.
Definition at line 474 of file class.ilSCTreeTasks.php.
References IL_CAL_DATETIME, IL_CAL_UNIX, and time.
Referenced by repairMissing().
|
staticprotected |
Definition at line 151 of file class.ilSCTreeTasks.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
|
static |
Definition at line 137 of file class.ilSCTreeTasks.php.
Referenced by ilSCTreeTasksGUI\deleteDuplicatesFromRepository(), and ilSCTreeTasksGUI\deleteDuplicatesFromTrash().
|
protected |
Delete missing tree entries from tree table.
Definition at line 412 of file class.ilSCTreeTasks.php.
References $factory, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by repairMissingTreeEntries().
|
static |
find duplicates type $ilDB
Definition at line 26 of file class.ilSCTreeTasks.php.
References $GLOBALS, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSCTreeTasksGUI\repairDuplicates().
|
static |
find duplicates type $ilDB
Definition at line 103 of file class.ilSCTreeTasks.php.
References $GLOBALS, $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSCTreeDuplicatesTableGUI\fillRow().
ilSCTreeTasks::findMissing | ( | ) |
Find missing objects.
Definition at line 289 of file class.ilSCTreeTasks.php.
References $ilDB, getTask(), IL_CAL_UNIX, readMissing(), ilSCTask\STATUS_COMPLETED, ilSCTask\STATUS_FAILED, and time.
ilSCTreeTasks::findMissingTreeEntries | ( | ) |
Definition at line 268 of file class.ilSCTreeTasks.php.
References $ilDB, getTask(), IL_CAL_UNIX, readMissingTreeEntries(), ilSCTask\STATUS_COMPLETED, ilSCTask\STATUS_FAILED, and time.
|
static |
Definition at line 84 of file class.ilSCTreeTasks.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSCTreeDuplicatesTableGUI\fillRow().
ilSCTreeTasks::getDB | ( | ) |
Definition at line 176 of file class.ilSCTreeTasks.php.
References $db.
Referenced by checkDuplicates().
|
static |
Definition at line 51 of file class.ilSCTreeTasks.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSCTreeDuplicatesTableGUI\fillObjectRow().
ilSCTreeTasks::getTask | ( | ) |
Definition at line 185 of file class.ilSCTreeTasks.php.
References $task.
Referenced by findMissing(), findMissingTreeEntries(), validateDuplicates(), and validateStructure().
|
static |
|
protected |
Read missing objects in tree Entry in oject_reference but no entry in tree type $ilDB.
Definition at line 369 of file class.ilSCTreeTasks.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by findMissing(), and repairMissing().
|
protected |
Read missing tree entries for referenced objects Entry in tree but no entry in object reference type $ilDB.
Definition at line 453 of file class.ilSCTreeTasks.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by findMissingTreeEntries(), and repairMissingTreeEntries().
ilSCTreeTasks::repairMissing | ( | ) |
Repair missing objects.
Definition at line 309 of file class.ilSCTreeTasks.php.
References createRecoveryContainer(), readMissing(), and repairMissingObject().
|
protected |
Repair missing object.
type | $a_parent_ref |
Definition at line 322 of file class.ilSCTreeTasks.php.
References $factory, $GLOBALS, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by repairMissing().
ilSCTreeTasks::repairMissingTreeEntries | ( | ) |
repair missing tree entries type $ilDB
Definition at line 389 of file class.ilSCTreeTasks.php.
References $GLOBALS, $ilDB, $query, $res, $row, deleteMissingTreeEntry(), ilDBConstants\FETCHMODE_OBJECT, and readMissingTreeEntries().
|
static |
Definition at line 45 of file class.ilSCTreeTasks.php.
References $GLOBALS, and array.
Referenced by ilSCTreeTasksGUI\deleteDuplicatesFromRepository(), and ilSCTreeTasksGUI\deleteDuplicatesFromTrash().
ilSCTreeTasks::validateDuplicates | ( | ) |
Definition at line 235 of file class.ilSCTreeTasks.php.
References checkDuplicates(), getTask(), IL_CAL_UNIX, ilSCTask\STATUS_COMPLETED, ilSCTask\STATUS_FAILED, and time.
ilSCTreeTasks::validateStructure | ( | ) |
validate tree structure base on parent relation
Definition at line 196 of file class.ilSCTreeTasks.php.
References checkStructure(), getTask(), IL_CAL_UNIX, ilSCTask\STATUS_COMPLETED, ilSCTask\STATUS_FAILED, and time.
|
private |
Definition at line 11 of file class.ilSCTreeTasks.php.
Referenced by getDB().
|
private |
Definition at line 12 of file class.ilSCTreeTasks.php.
Referenced by __construct(), and getTask().