4include_once
'./Services/SystemCheck/classes/class.ilSCComponentTaskGUI.php';
24 return $this->
getLang()->txt(
'sysc_grp_tree');
29 return $this->
getLang()->txt(
'sysc_grp_tree_desc');
37 switch ($this->
getTask()->getIdentifier()) {
39 return $this->
getLang()->txt(
'sysc_task_tree_dump');
42 return $this->
getLang()->txt(
'sysc_task_tree_duplicates');
45 return $this->
getLang()->txt(
'sysc_task_tree_missing_reference');
48 return $this->
getLang()->txt(
'sysc_task_tree_missing_tree');
51 return $this->
getLang()->txt(
'sysc_task_structure');
60 switch ($this->
getTask()->getIdentifier()) {
62 return $this->
getLang()->txt(
'sysc_task_tree_dump_desc');
65 return $this->
getLang()->txt(
'sysc_task_tree_duplicates_desc');
68 return $this->
getLang()->txt(
'sysc_task_tree_missing_reference_desc');
71 return $this->
getLang()->txt(
'sysc_task_tree_missing_tree_desc');
74 return $this->
getLang()->txt(
'sysc_task_structure_desc');
89 switch ($this->
getTask()->getIdentifier()) {
93 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
94 'command' =>
'validateDuplicates'
99 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
100 'command' =>
'repairDuplicates'
107 include_once
'./Services/Repository/classes/class.ilValidator.php';
109 if ($validator->hasScanLog()) {
111 'txt' => $this->
getLang()->txt(
'sysc_action_show_tree'),
112 'command' =>
'showTree'
117 'txt' => $this->
getLang()->txt(
'sysc_action_list_tree'),
118 'command' =>
'listTree'
125 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
126 'command' =>
'findMissing'
131 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
132 'command' =>
'confirmRepairMissing'
140 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
141 'command' =>
'findMissingTreeEntries'
146 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
147 'command' =>
'confirmRepairMissingTreeEntries'
155 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
156 'command' =>
'analyzeStructure'
161 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
162 'command' =>
'confirmRepairStructure'
176 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
178 $num_failures = $tasks->validateStructure();
186 $this->
getCtrl()->returnToParent($this);
197 $this->
getLang()->txt(
'sysc_message_tree_structure_confirm'),
198 $this->
getLang()->txt(
'sysc_btn_tree_structure'),
208 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
215 $GLOBALS[
'tree']->renumber(ROOT_FOLDER_ID);
223 $this->
getCtrl()->returnToParent($this);
235 include_once
'./Services/Repository/classes/class.ilValidator.php';
237 $errors_count = $validator->dumpTree();
253 $this->
getCtrl()->returnToParent($this);
261 include_once
"./Services/Repository/classes/class.ilValidator.php";
263 $scan_log = $validator->readScanLog();
265 if (is_array($scan_log)) {
266 $scan_log =
'<pre>' . implode(
"", $scan_log) .
'</pre>';
267 $GLOBALS[
'tpl']->setContent($scan_log);
278 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
280 $num_failures = $tasks->validateDuplicates();
288 $this->
getCtrl()->returnToParent($this);
300 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
303 include_once
'./Services/Tree/classes/class.ilSCTreeDuplicatesTableGUI.php';
306 $table->parse($deepest_duplicate);
313 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Removing from repository: ' . $_REQUEST[
'duplicate_id']);
314 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
318 if ($tasks->checkDuplicates()) {
323 $this->
getCtrl()->returnToParent($this);
328 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Removing from repository: ' . $_REQUEST[
'duplicate_id']);
329 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
334 if ($tasks->checkDuplicates()) {
339 $this->
getCtrl()->returnToParent($this);
347 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
349 $num_failures = $tasks->findMissing();
357 $this->
getCtrl()->returnToParent($this);
369 $this->
getLang()->txt(
'sysc_message_tree_missing_confirm'),
370 $this->
getLang()->txt(
'sysc_btn_tree_missing'),
380 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
382 $tasks->repairMissing();
390 $this->
getCtrl()->returnToParent($this);
398 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
400 $num_failures = $tasks->findMissingTreeEntries();
408 $this->
getCtrl()->returnToParent($this);
418 $this->
getLang()->txt(
'sysc_message_tree_missing_confirm'),
419 $this->
getLang()->txt(
'sysc_btn_tree_missing'),
420 'repairMissingTreeEntries'
429 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
431 $tasks->repairMissingTreeEntries();
438 $this->
getCtrl()->returnToParent($this);
An exception for terminatinating execution or to throw for unit testing.
@classDescription Date and time handling
Base class for materialize path based trees Based on implementation of Werner Randelshofer.
static createFromParentReleation()
Base class for nested set path based trees.
Abstract class for component tasks.
showSimpleConfirmation($a_text, $a_btn_text, $a_cmd)
Show simple confirmation.
Defines a system check task.
confirmRepairMissing()
Show repair missing confirmation.
confirmRepairMissingTreeEntries()
Show repair missing confirmation.
getActions()
get actions for table gui
findMissingTreeEntries()
find missing objects
repairMissingTreeEntries()
Repair missing objects.
getGroupTitle()
Get title of group.
getGroupDescription()
Get description of group.
findMissing()
find missing objects
deleteDuplicatesFromTrash()
getDescription()
Get title of task.
deleteDuplicatesFromRepository()
repairStructure()
Repair structure.
getTitle()
Get title of task.
showTree()
Show already scanned tree.
analyzeStructure()
Analyze tree structure.
confirmRepairStructure()
Show repair missing confirmation.
validateDuplicates()
start task
repairMissing()
Repair missing objects.
Defines a system check task.
static findDeepestDuplicate()
find duplicates @global type $ilDB
static deleteDuplicateFromTree($a_duplicate_id, $a_delete_trash)
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
ILIAS Data Validator & Recovery Tool.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if(empty($password)) $table