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');
39 $GLOBALS[
'ilLog']->write($this->lng->txt(
'sysc_overview'));
40 $GLOBALS[
'ilLog']->write($this->lng->txt(
'sysc_trash_restore'));
61 $next_class = $this->ctrl->getNextClass($this);
62 $cmd = $this->ctrl->getCmd();
67 case "ilobjectownershipmanagementgui":
68 $this->
setSubTabs(self::SECTION_MAIN,
'no_owner');
69 include_once
'Services/Object/classes/class.ilObjectOwnershipManagementGUI.php';
71 $this->ctrl->forwardCommand($gui);
74 case 'ilobjsystemfoldergui':
75 include_once
'./Modules/SystemFolder/classes/class.ilObjSystemFolderGUI.php';
77 $this->ctrl->forwardCommand($sys_folder);
84 case 'ilpermissiongui':
85 $this->tabs_gui->setTabActive(
'perm_settings');
86 require_once
'Services/AccessControl/classes/class.ilPermissionGUI.php';
88 $this->ctrl->forwardCommand($perm_gui);
92 case 'ilobjsystemcheckgui':
102 include_once
'./Services/SystemCheck/classes/class.ilSCComponentTaskFactory.php';
103 $this->ctrl->saveParameter($this,
'grp_id');
104 $this->ctrl->saveParameter($this,
'task_id');
105 $this->ctrl->setReturn($this,
'showGroup');
107 $GLOBALS[
'ilTabs']->setBackTarget($this->lng->txt(
'back'),$this->ctrl->getLinkTarget($this,
'showGroup'));
109 $this->ctrl->forwardCommand($handler);
127 if($rbacsystem->checkAccess(
'read', $this->object->getRefId()))
129 $tabs_gui->
addTarget(
'overview', $this->ctrl->getLinkTarget($this,
'overview'));
131 if($rbacsystem->checkAccess(
'edit_permission', $this->object->getRefId()))
133 $tabs_gui->
addTarget(
'perm_settings', $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
'perm'), array(
'perm',
'info',
'owner'),
'ilpermissiongui');
142 $this->
getLang()->loadLanguageModule(
'sysc');
145 $this->
setSubTabs(self::SECTION_MAIN,
'overview');
148 include_once
'Services/SystemCheck/classes/class.ilSCGroupTableGUI.php';
154 $GLOBALS[
'tpl']->setContent($table->getHTML());
166 $this->ctrl->saveParameter($this,
'grp_id');
168 include_once
'Services/SystemCheck/classes/class.ilSCTaskTableGUI.php';
173 $GLOBALS[
'tpl']->setContent($table->getHTML());
186 $this->
setSubTabs(self::SECTION_MAIN,
'trash');
191 $GLOBALS[
'tpl']->setContent($form->getHTML());
200 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
202 $form->setFormAction($this->ctrl->getFormAction($this));
204 $form->setTitle($this->lng->txt(
'sysc_administrate_deleted'));
207 $action->setRequired(TRUE);
211 $restore->setInfo($this->lng->txt(
'sysc_trash_restore_info'));
212 $action->addOption($restore);
216 $remove->setInfo($this->lng->txt(
'sysc_trash_remove_info'));
217 $action->addOption($remove);
220 $num =
new ilNumberInputGUI($this->lng->txt(
'sysc_trash_limit_num'),
'number');
221 $num->setInfo($this->lng->txt(
'purge_count_limit_desc'));
223 $num->setMinValue(1);
224 $remove->addSubItem($num);
227 $age->setInfo($this->lng->txt(
'purge_age_limit_desc'));
228 $age->setMinuteStepSize(15);
230 #$earlier = new ilDateTime(time(),IL_CAL_UNIX);
231 #$earlier->increment(IL_CAL_MONTH,-6);
232 #$age->setDate($earlier);
233 $remove->addSubItem($age);
236 $types =
new ilSelectInputGUI($this->lng->txt(
'sysc_trash_limit_type'),
'types');
246 if(!
$GLOBALS[
'objDefinition']->isRBACObject($obj_type) or !
$GLOBALS[
'objDefinition']->isAllowedInRepository($obj_type))
250 $options[$obj_type] = $this->lng->txt(
'obj_'.$obj_type);
256 $remove->addSubItem($types);
258 $form->addItem($action);
261 $form->addCommandButton(
'handleTrashAction', $this->lng->txt(
'start_scan'));
262 $form->addCommandButton(
'',$this->lng->txt(
'cancel'));
273 if($form->checkInput())
278 $dt_arr = $form->getInput(
'age');
280 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.print_r($dt_arr,TRUE));
287 $trash->setNumberLimit($form->getInput(
'number'));
289 if($form->getInput(
'types'))
291 $trash->setTypesLimit((array) $form->getInput(
'types'));
293 $trash->setMode($form->getInput(
'type'));
297 $form->setValuesByPost();
303 $form->setValuesByPost();
320 $this->
getLang()->txt(
'sysc_groups'),
321 $this->ctrl->getLinkTarget($this,
'overview')
325 $this->
getLang()->txt(
'sysc_tab_trash'),
326 $this->ctrl->getLinkTarget($this,
'trash')
330 $this->
getLang()->txt(
'system_check_no_owner'),
331 $this->ctrl->getLinkTargetByClass(
'ilobjectownershipmanagementgui')
338 $this->lng->txt(
'back'),
339 $this->ctrl->getLinkTarget($this,
'overview')
342 $GLOBALS[
'ilTabs']->activateSubTab($a_active);
__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()
prepare output
getAdminTabs(&$tabs_gui)
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.
addTarget($a_text, $a_link, $a_cmd="", $a_cmdClass="", $a_frame="", $a_activate=false, $a_dir_text=false)
DEPRECATED.
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['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
if(!is_array($argv)) $options