ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 270 of file class.ilSCTreeTasks.php.
References $GLOBALS, $query, $res, $row, array, ilDBConstants\FETCHMODE_OBJECT, and getDB().
Referenced by validateDuplicates().
ilSCTreeTasks::checkStructure | ( | ) |
Definition at line 225 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 516 of file class.ilSCTreeTasks.php.
References IL_CAL_DATETIME, IL_CAL_UNIX, and time.
Referenced by repairMissing().
|
staticprotected |
Definition at line 160 of file class.ilSCTreeTasks.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
|
static |
Definition at line 143 of file class.ilSCTreeTasks.php.
Referenced by ilSCTreeTasksGUI\deleteDuplicatesFromRepository(), and ilSCTreeTasksGUI\deleteDuplicatesFromTrash().
|
protected |
Delete missing tree entries from tree table.
Definition at line 450 of file class.ilSCTreeTasks.php.
References $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 108 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 311 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 287 of file class.ilSCTreeTasks.php.
References $ilDB, getTask(), IL_CAL_UNIX, readMissingTreeEntries(), ilSCTask\STATUS_COMPLETED, ilSCTask\STATUS_FAILED, and time.
|
static |
Definition at line 88 of file class.ilSCTreeTasks.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSCTreeDuplicatesTableGUI\fillRow().
ilSCTreeTasks::getDB | ( | ) |
Definition at line 187 of file class.ilSCTreeTasks.php.
References $db.
Referenced by checkDuplicates().
|
static |
Definition at line 52 of file class.ilSCTreeTasks.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilSCTreeDuplicatesTableGUI\fillObjectRow().
ilSCTreeTasks::getTask | ( | ) |
Definition at line 196 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 404 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 494 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 335 of file class.ilSCTreeTasks.php.
References $ref_id, createRecoveryContainer(), readMissing(), and repairMissingObject().
|
protected |
Repair missing object.
type | $a_parent_ref |
Definition at line 350 of file class.ilSCTreeTasks.php.
References $GLOBALS, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by repairMissing().
ilSCTreeTasks::repairMissingTreeEntries | ( | ) |
repair missing tree entries type $ilDB
Definition at line 425 of file class.ilSCTreeTasks.php.
References $GLOBALS, $ilDB, $query, $ref_id, $res, $row, deleteMissingTreeEntry(), ilDBConstants\FETCHMODE_OBJECT, and readMissingTreeEntries().
|
static |
Definition at line 46 of file class.ilSCTreeTasks.php.
References $GLOBALS, and array.
Referenced by ilSCTreeTasksGUI\deleteDuplicatesFromRepository(), and ilSCTreeTasksGUI\deleteDuplicatesFromTrash().
ilSCTreeTasks::validateDuplicates | ( | ) |
Definition at line 250 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 207 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().