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()) {
39 return $this->
getLang()->txt(
'sysc_task_tree_dump');
41 case self::TYPE_DUPLICATES:
42 return $this->
getLang()->txt(
'sysc_task_tree_duplicates');
44 case self::TYPE_MISSING:
45 return $this->
getLang()->txt(
'sysc_task_tree_missing_reference');
47 case self::TYPE_MISSING_TREE:
48 return $this->
getLang()->txt(
'sysc_task_tree_missing_tree');
50 case self::TYPE_STRUCTURE:
51 return $this->
getLang()->txt(
'sysc_task_structure');
60 switch ($this->
getTask()->getIdentifier()) {
62 return $this->
getLang()->txt(
'sysc_task_tree_dump_desc');
64 case self::TYPE_DUPLICATES:
65 return $this->
getLang()->txt(
'sysc_task_tree_duplicates_desc');
67 case self::TYPE_MISSING:
68 return $this->
getLang()->txt(
'sysc_task_tree_missing_reference_desc');
70 case self::TYPE_MISSING_TREE:
71 return $this->
getLang()->txt(
'sysc_task_tree_missing_tree_desc');
73 case self::TYPE_STRUCTURE:
74 return $this->
getLang()->txt(
'sysc_task_structure_desc');
89 switch ($this->
getTask()->getIdentifier()) {
90 case self::TYPE_DUPLICATES:
93 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
94 'command' =>
'validateDuplicates' 99 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
100 'command' =>
'repairDuplicates' 105 case self::TYPE_DUMP:
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' 122 case self::TYPE_MISSING:
125 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
126 'command' =>
'findMissing' 131 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
132 'command' =>
'confirmRepairMissing' 137 case self::TYPE_MISSING_TREE:
140 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
141 'command' =>
'findMissingTreeEntries' 146 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
147 'command' =>
'confirmRepairMissingTreeEntries' 152 case self::TYPE_STRUCTURE:
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();
184 ilUtil::sendSuccess($this->
getLang()->txt(
'sysc_message_success'),
true);
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[
'DIC'][
'tree']->renumber(ROOT_FOLDER_ID);
222 ilUtil::sendSuccess($this->
getLang()->txt(
'sysc_message_success'),
true);
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[
'DIC'][
'tpl']->setContent($scan_log);
278 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
280 $num_failures =
$tasks->validateDuplicates();
286 ilUtil::sendSuccess($this->
getLang()->txt(
'sysc_message_success'),
true);
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[
'DIC'][
'ilLog']->write(__METHOD__ .
': Removing from repository: ' . $_REQUEST[
'duplicate_id']);
314 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
318 if (
$tasks->checkDuplicates()) {
322 ilUtil::sendSuccess($this->
getLang()->txt(
'sysc_deleted_duplicate'),
true);
323 $this->
getCtrl()->returnToParent($this);
328 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Removing from repository: ' . $_REQUEST[
'duplicate_id']);
329 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
334 if (
$tasks->checkDuplicates()) {
338 ilUtil::sendSuccess($this->
getLang()->txt(
'sysc_deleted_duplicate'),
true);
339 $this->
getCtrl()->returnToParent($this);
347 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
349 $num_failures =
$tasks->findMissing();
355 ilUtil::sendSuccess($this->
getLang()->txt(
'sysc_message_success'),
true);
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';
389 ilUtil::sendSuccess($this->
getLang()->txt(
'sysc_message_success'),
true);
390 $this->
getCtrl()->returnToParent($this);
398 include_once
'./Services/Tree/classes/class.ilSCTreeTasks.php';
400 $num_failures =
$tasks->findMissingTreeEntries();
406 ilUtil::sendSuccess($this->
getLang()->txt(
'sysc_message_success'),
true);
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();
437 ilUtil::sendSuccess($this->
getLang()->txt(
'sysc_message_success'),
true);
438 $this->
getCtrl()->returnToParent($this);
repairStructure()
Repair structure.
confirmRepairMissingTreeEntries()
Show repair missing confirmation.
validateDuplicates()
start task
Abstract class for component tasks.
deleteDuplicatesFromRepository()
static findDeepestDuplicate()
find duplicates type $ilDB
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.
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.
if(empty($password)) $table
ILIAS Data Validator & Recovery Tool.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.