4include_once
'Services/Object/classes/class.ilObjectGUI.php';
5include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
6include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
7include_once
'./Services/SystemCheck/classes/class.ilSystemCheckTrash.php';
33 public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output =
true)
37 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
38 $this->lng->loadLanguageModule(
'sysc');
55 $next_class = $this->ctrl->getNextClass($this);
56 $cmd = $this->ctrl->getCmd();
61 case "ilobjectownershipmanagementgui":
62 $this->
setSubTabs(self::SECTION_MAIN,
'no_owner');
63 include_once
'Services/Object/classes/class.ilObjectOwnershipManagementGUI.php';
65 $this->ctrl->forwardCommand($gui);
68 case 'ilobjsystemfoldergui':
69 include_once
'./Modules/SystemFolder/classes/class.ilObjSystemFolderGUI.php';
71 $this->ctrl->forwardCommand($sys_folder);
78 case 'ilpermissiongui':
79 $this->tabs_gui->setTabActive(
'perm_settings');
80 require_once
'Services/AccessControl/classes/class.ilPermissionGUI.php';
82 $this->ctrl->forwardCommand($perm_gui);
86 case 'ilobjsystemcheckgui':
96 include_once
'./Services/SystemCheck/classes/class.ilSCComponentTaskFactory.php';
97 $this->ctrl->saveParameter($this,
'grp_id');
98 $this->ctrl->saveParameter($this,
'task_id');
99 $this->ctrl->setReturn($this,
'showGroup');
101 $GLOBALS[
'ilTabs']->setBackTarget($this->lng->txt(
'back'),$this->ctrl->getLinkTarget($this,
'showGroup'));
103 $this->ctrl->forwardCommand($handler);
121 if($rbacsystem->checkAccess(
'read', $this->object->getRefId()))
123 $this->tabs_gui->addTarget(
'overview', $this->ctrl->getLinkTarget($this,
'overview'));
125 if($rbacsystem->checkAccess(
'edit_permission', $this->object->getRefId()))
127 $this->tabs_gui->addTarget(
'perm_settings', $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
'perm'), array(
'perm',
'info',
'owner'),
'ilpermissiongui');
136 $this->
getLang()->loadLanguageModule(
'sysc');
139 $this->
setSubTabs(self::SECTION_MAIN,
'overview');
142 include_once
'Services/SystemCheck/classes/class.ilSCGroupTableGUI.php';
148 $GLOBALS[
'tpl']->setContent($table->getHTML());
159 $grp_id = (int) $_REQUEST[
'grp_id'];
160 $this->ctrl->saveParameter($this,
'grp_id');
162 include_once
'Services/SystemCheck/classes/class.ilSCTaskTableGUI.php';
167 $GLOBALS[
'tpl']->setContent($table->getHTML());
180 $this->
setSubTabs(self::SECTION_MAIN,
'trash');
185 $GLOBALS[
'tpl']->setContent($form->getHTML());
194 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
196 $form->setFormAction($this->ctrl->getFormAction($this));
198 $form->setTitle($this->lng->txt(
'sysc_administrate_deleted'));
201 $action->setRequired(TRUE);
205 $restore->setInfo($this->lng->txt(
'sysc_trash_restore_info'));
206 $action->addOption($restore);
210 $remove->setInfo($this->lng->txt(
'sysc_trash_remove_info'));
211 $action->addOption($remove);
214 $num =
new ilNumberInputGUI($this->lng->txt(
'sysc_trash_limit_num'),
'number');
215 $num->setInfo($this->lng->txt(
'purge_count_limit_desc'));
217 $num->setMinValue(1);
218 $remove->addSubItem($num);
221 $age->setInfo($this->lng->txt(
'purge_age_limit_desc'));
222 $age->setMinuteStepSize(15);
223 #$earlier = new ilDateTime(time(),IL_CAL_UNIX);
224 #$earlier->increment(IL_CAL_MONTH,-6);
225 #$age->setDate($earlier);
226 $remove->addSubItem($age);
229 $types =
new ilSelectInputGUI($this->lng->txt(
'sysc_trash_limit_type'),
'types');
239 if(!
$GLOBALS[
'objDefinition']->isRBACObject($obj_type) or !
$GLOBALS[
'objDefinition']->isAllowedInRepository($obj_type))
243 $options[$obj_type] = $this->lng->txt(
'obj_'.$obj_type);
249 $remove->addSubItem($types);
251 $form->addItem($action);
254 $form->addCommandButton(
'handleTrashAction', $this->lng->txt(
'start_scan'));
255 $form->addCommandButton(
'',$this->lng->txt(
'cancel'));
266 if($form->checkInput())
270 $dt = $form->getItemByPostVar(
'age')->getDate();
273 $trash->setAgeLimit($dt);
275 $trash->setNumberLimit($form->getInput(
'number'));
277 if($form->getInput(
'types'))
279 $trash->setTypesLimit((array) $form->getInput(
'types'));
281 $trash->setMode($form->getInput(
'type'));
285 $form->setValuesByPost();
291 $form->setValuesByPost();
308 $this->
getLang()->txt(
'sysc_groups'),
309 $this->ctrl->getLinkTarget($this,
'overview')
313 $this->
getLang()->txt(
'sysc_tab_trash'),
314 $this->ctrl->getLinkTarget($this,
'trash')
318 $this->
getLang()->txt(
'system_check_no_owner'),
319 $this->ctrl->getLinkTargetByClass(
'ilobjectownershipmanagementgui')
326 $this->lng->txt(
'back'),
327 $this->ctrl->getLinkTarget($this,
'overview')
330 $GLOBALS[
'ilTabs']->activateSubTab($a_active);
An exception for terminatinating execution or to throw for unit testing.
__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
overview()
Show overview table.
trash(ilPropertyFormGUI $form=null)
Show trash form.
setSubTabs($a_section, $a_active)
Set subtabs.
showGroup()
Show group tasks.
handleTrashAction()
Handle Trash action.
initFormTrash()
Show trash restore form.
executeCommand()
ilCtrl execute command
getLang()
Get language obj.
Class ilObjSystemFolderGUI.
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput($a_show_subobjects=true)
prepare output
getAdminTabs()
administration tabs show only permissions and trash folder
Class ilObjectOwnershipManagementGUI.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
This class represents an option in a radio group.
static getComponentTask($a_task_id)
Table GUI for system check groups overview.
Table GUI for system check task overview.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if(!is_array($argv)) $options