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 $this->lng->loadLanguageModule(
'sysc');
54 $next_class = $this->ctrl->getNextClass($this);
55 $cmd = $this->ctrl->getCmd();
58 switch ($next_class) {
59 case "ilobjectownershipmanagementgui":
60 $this->
setSubTabs(self::SECTION_MAIN,
'no_owner');
61 include_once
'Services/Object/classes/class.ilObjectOwnershipManagementGUI.php';
63 $this->ctrl->forwardCommand($gui);
66 case 'ilobjsystemfoldergui':
67 include_once
'./Modules/SystemFolder/classes/class.ilObjSystemFolderGUI.php';
69 $this->ctrl->forwardCommand($sys_folder);
71 $GLOBALS[
'DIC'][
'ilTabs']->clearTargets();
76 case 'ilpermissiongui':
77 $this->tabs_gui->setTabActive(
'perm_settings');
78 require_once
'Services/AccessControl/classes/class.ilPermissionGUI.php';
80 $this->ctrl->forwardCommand($perm_gui);
84 case 'ilobjsystemcheckgui':
85 if ($cmd ==
'' || $cmd ==
'view') {
93 include_once
'./Services/SystemCheck/classes/class.ilSCComponentTaskFactory.php';
94 $this->ctrl->saveParameter($this,
'grp_id');
95 $this->ctrl->saveParameter($this,
'task_id');
96 $this->ctrl->setReturn($this,
'showGroup');
97 $GLOBALS[
'DIC'][
'ilTabs']->clearTargets();
98 $GLOBALS[
'DIC'][
'ilTabs']->setBackTarget($this->lng->txt(
'back'), $this->ctrl->getLinkTarget($this,
'showGroup'));
100 $this->ctrl->forwardCommand($handler);
120 if (
$rbacsystem->checkAccess(
'read', $this->object->getRefId())) {
121 $this->tabs_gui->addTarget(
'overview', $this->ctrl->getLinkTarget($this,
'overview'));
123 if (
$rbacsystem->checkAccess(
'edit_permission', $this->object->getRefId())) {
124 $this->tabs_gui->addTarget(
'perm_settings', $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
'perm'), array(
'perm',
'info',
'owner'),
'ilpermissiongui');
133 $this->
getLang()->loadLanguageModule(
'sysc');
136 $this->
setSubTabs(self::SECTION_MAIN,
'overview');
139 include_once
'Services/SystemCheck/classes/class.ilSCGroupTableGUI.php';
145 $GLOBALS[
'DIC'][
'tpl']->setContent($table->getHTML());
156 $grp_id = (int) $_REQUEST[
'grp_id'];
157 $this->ctrl->saveParameter($this,
'grp_id');
159 include_once
'Services/SystemCheck/classes/class.ilSCTaskTableGUI.php';
164 $GLOBALS[
'DIC'][
'tpl']->setContent($table->getHTML());
177 $this->
setSubTabs(self::SECTION_MAIN,
'trash');
181 $GLOBALS[
'DIC'][
'tpl']->setContent($form->getHTML());
190 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
192 $form->setFormAction($this->ctrl->getFormAction($this));
194 $form->setTitle($this->lng->txt(
'sysc_administrate_deleted'));
197 $action->setRequired(
true);
201 $restore->setInfo($this->lng->txt(
'sysc_trash_restore_info'));
202 $action->addOption($restore);
206 $remove->setInfo($this->lng->txt(
'sysc_trash_remove_info'));
207 $action->addOption($remove);
210 $num =
new ilNumberInputGUI($this->lng->txt(
'sysc_trash_limit_num'),
'number');
211 $num->setInfo($this->lng->txt(
'purge_count_limit_desc'));
213 $num->setMinValue(1);
214 $remove->addSubItem($num);
217 $age->setInfo($this->lng->txt(
'purge_age_limit_desc'));
218 $age->setMinuteStepSize(15);
219 #$earlier = new ilDateTime(time(),IL_CAL_UNIX);
220 #$earlier->increment(IL_CAL_MONTH,-6);
221 #$age->setDate($earlier);
222 $remove->addSubItem($age);
225 $types =
new ilSelectInputGUI($this->lng->txt(
'sysc_trash_limit_type'),
'types');
234 if (!
$GLOBALS[
'DIC'][
'objDefinition']->isRBACObject($obj_type) or !
$GLOBALS[
'DIC'][
'objDefinition']->isAllowedInRepository($obj_type)) {
237 $options[$obj_type] = $this->lng->txt(
'obj_' . $obj_type);
242 $types->setOptions($options);
243 $remove->addSubItem($types);
245 $form->addItem($action);
248 $form->addCommandButton(
'handleTrashAction', $this->lng->txt(
'start_scan'));
249 $form->addCommandButton(
'', $this->lng->txt(
'cancel'));
260 if ($form->checkInput()) {
263 $dt = $form->getItemByPostVar(
'age')->getDate();
265 $trash->setAgeLimit($dt);
267 $trash->setNumberLimit($form->getInput(
'number'));
269 if ($form->getInput(
'types')) {
270 $trash->setTypesLimit((array) $form->getInput(
'types'));
272 $trash->setMode($form->getInput(
'type'));
275 ilUtil::sendSuccess($this->lng->txt(
'settings_saved'),
true);
276 $form->setValuesByPost();
282 $form->setValuesByPost();
294 switch ($a_section) {
296 $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
298 $this->
getLang()->txt(
'sysc_groups'),
299 $this->ctrl->getLinkTarget($this,
'overview')
301 $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
303 $this->
getLang()->txt(
'sysc_tab_trash'),
304 $this->ctrl->getLinkTarget($this,
'trash')
306 $GLOBALS[
'DIC'][
'ilTabs']->addSubTab(
308 $this->
getLang()->txt(
'system_check_no_owner'),
309 $this->ctrl->getLinkTargetByClass(
'ilobjectownershipmanagementgui')
314 $GLOBALS[
'DIC'][
'ilTabs']->clearTargets();
315 $GLOBALS[
'DIC'][
'ilTabs']->setBackTarget(
316 $this->lng->txt(
'back'),
317 $this->ctrl->getLinkTarget($this,
'overview')
320 $GLOBALS[
'DIC'][
'ilTabs']->activateSubTab($a_active);
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
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 sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc