4 include_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())
40 return $this->
getLang()->txt(
'sysc_task_tree_dump');
42 case self::TYPE_DUPLICATES:
43 return $this->
getLang()->txt(
'sysc_task_tree_duplicates');
45 case self::TYPE_MISSING:
46 return $this->
getLang()->txt(
'sysc_task_tree_missing_reference');
48 case self::TYPE_MISSING_TREE:
49 return $this->
getLang()->txt(
'sysc_task_tree_missing_tree');
51 case self::TYPE_STRUCTURE:
52 return $this->
getLang()->txt(
'sysc_task_structure');
61 switch($this->
getTask()->getIdentifier())
64 return $this->
getLang()->txt(
'sysc_task_tree_dump_desc');
66 case self::TYPE_DUPLICATES:
67 return $this->
getLang()->txt(
'sysc_task_tree_duplicates_desc');
69 case self::TYPE_MISSING:
70 return $this->
getLang()->txt(
'sysc_task_tree_missing_reference_desc');
72 case self::TYPE_MISSING_TREE:
73 return $this->
getLang()->txt(
'sysc_task_tree_missing_tree_desc');
75 case self::TYPE_STRUCTURE:
76 return $this->
getLang()->txt(
'sysc_task_structure_desc');
92 switch($this->
getTask()->getIdentifier())
94 case self::TYPE_DUPLICATES:
97 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
98 'command' =>
'validateDuplicates' 104 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
105 'command' =>
'repairDuplicates' 110 case self::TYPE_DUMP:
112 include_once
'./Services/Repository/classes/class.ilValidator.php';
114 if($validator->hasScanLog())
117 'txt' => $this->
getLang()->txt(
'sysc_action_show_tree'),
118 'command' =>
'showTree' 123 'txt' => $this->
getLang()->txt(
'sysc_action_list_tree'),
124 'command' =>
'listTree' 128 case self::TYPE_MISSING:
131 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
132 'command' =>
'findMissing' 138 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
139 'command' =>
'confirmRepairMissing' 144 case self::TYPE_MISSING_TREE:
147 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
148 'command' =>
'findMissingTreeEntries' 154 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
155 'command' =>
'confirmRepairMissingTreeEntries' 160 case self::TYPE_STRUCTURE:
163 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
164 'command' =>
'analyzeStructure' 170 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
171 'command' =>
'confirmRepairStructure' 185 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
187 $num_failures = $tasks->validateStructure();
198 $this->
getCtrl()->returnToParent($this);
209 $this->
getLang()->txt(
'sysc_message_tree_structure_confirm'),
210 $this->
getLang()->txt(
'sysc_btn_tree_structure'),
220 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
230 $GLOBALS[
'tree']->renumber(ROOT_FOLDER_ID);
238 $this->
getCtrl()->returnToParent($this);
250 include_once
'./Services/Repository/classes/class.ilValidator.php';
252 $errors_count = $validator->dumpTree();
271 $this->
getCtrl()->returnToParent($this);
279 include_once
"./Services/Repository/classes/class.ilValidator.php";
281 $scan_log = $validator->readScanLog();
283 if (is_array($scan_log))
285 $scan_log =
'<pre>'.implode(
"",$scan_log).
'</pre>';
286 $GLOBALS[
'tpl']->setContent($scan_log);
297 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
299 $num_failures = $tasks->validateDuplicates();
310 $this->
getCtrl()->returnToParent($this);
322 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
325 include_once
'./Services/Tree/classes/class.ilSCTreeDuplicatesTableGUI.php';
328 $table->parse($deepest_duplicate);
330 $GLOBALS[
'tpl']->setContent($table->getHTML());
335 $GLOBALS[
'ilLog']->write(__METHOD__.
': Removing from repository: '.$_REQUEST[
'duplicate_id']);
336 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
340 if($tasks->checkDuplicates())
346 $this->
getCtrl()->returnToParent($this);
352 $GLOBALS[
'ilLog']->write(__METHOD__.
': Removing from repository: '.$_REQUEST[
'duplicate_id']);
353 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
358 if($tasks->checkDuplicates())
364 $this->
getCtrl()->returnToParent($this);
372 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
374 $num_failures = $tasks->findMissing();
385 $this->
getCtrl()->returnToParent($this);
397 $this->
getLang()->txt(
'sysc_message_tree_missing_confirm'),
398 $this->
getLang()->txt(
'sysc_btn_tree_missing'),
408 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
410 $tasks->repairMissing();
418 $this->
getCtrl()->returnToParent($this);
426 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
428 $num_failures = $tasks->findMissingTreeEntries();
439 $this->
getCtrl()->returnToParent($this);
449 $this->
getLang()->txt(
'sysc_message_tree_missing_confirm'),
450 $this->
getLang()->txt(
'sysc_btn_tree_missing'),
451 'repairMissingTreeEntries' 460 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
462 $tasks->repairMissingTreeEntries();
469 $this->
getCtrl()->returnToParent($this);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
repairStructure()
Repair structure.
confirmRepairMissingTreeEntries()
Show repair missing confirmation.
validateDuplicates()
start task
Abstract class for component tasks.
deleteDuplicatesFromRepository()
static findDeepestDuplicate()
find duplicates type $ilDB
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
repairMissingTreeEntries()
Repair missing objects.
getActions()
get actions for table gui
Base class for nested set path based trees.
showTree()
Show already scanned tree.
static createFromParentReleation()
showSimpleConfirmation($a_text, $a_btn_text, $a_cmd)
Show simple confirmation.
findMissingTreeEntries()
find missing objects
confirmRepairMissing()
Show repair missing confirmation.
findMissing()
find missing objects
static deleteDuplicateFromTree($a_duplicate_id, $a_delete_trash)
getTitle()
Get title of task.
Create styles array
The data for the language used.
Defines a system check task.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
confirmRepairStructure()
Show repair missing confirmation.
Defines a system check task.
analyzeStructure()
Analyze tree structure.
deleteDuplicatesFromTrash()
getDescription()
Get title of task.
repairMissing()
Repair missing objects.
Base class for materialize path based trees Based on implementation of Werner Randelshofer.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
ILIAS Data Validator & Recovery Tool.