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())
40 return $this->
getLang()->txt(
'sysc_task_tree_dump');
43 return $this->
getLang()->txt(
'sysc_task_tree_duplicates');
46 return $this->
getLang()->txt(
'sysc_task_tree_missing_reference');
49 return $this->
getLang()->txt(
'sysc_task_tree_missing_tree');
52 return $this->
getLang()->txt(
'sysc_task_structure');
61 switch($this->
getTask()->getIdentifier())
64 return $this->
getLang()->txt(
'sysc_task_tree_dump_desc');
67 return $this->
getLang()->txt(
'sysc_task_tree_duplicates_desc');
70 return $this->
getLang()->txt(
'sysc_task_tree_missing_reference_desc');
73 return $this->
getLang()->txt(
'sysc_task_tree_missing_tree_desc');
76 return $this->
getLang()->txt(
'sysc_task_structure_desc');
92 switch($this->
getTask()->getIdentifier())
97 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
98 'command' =>
'validateDuplicates'
104 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
105 'command' =>
'repairDuplicates'
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'
131 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
132 'command' =>
'findMissing'
138 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
139 'command' =>
'confirmRepairMissing'
147 'txt' => $this->
getLang()->txt(
'sysc_action_validate'),
148 'command' =>
'findMissingTreeEntries'
154 'txt' => $this->
getLang()->txt(
'sysc_action_repair'),
155 'command' =>
'confirmRepairMissingTreeEntries'
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);
@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['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']