4 include_once
'Services/Object/classes/class.ilObjectGUI.php';
5 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
6 include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
7 include_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'));
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');
244 foreach($sub_objects as $obj_type)
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();
317 case self::SECTION_MAIN:
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')
335 case self::SECTION_GROUP:
338 $this->lng->txt(
'back'),
339 $this->ctrl->getLinkTarget($this,
'overview')
342 $GLOBALS[
'ilTabs']->activateSubTab($a_active);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
This class represents an option in a radio group.
overview()
Show overview table.
initFormTrash()
Show trash restore form.
static getComponentTask($a_task_id)
showGroup()
Show group tasks.
addTarget($a_text, $a_link, $a_cmd="", $a_cmdClass="", $a_frame="", $a_activate=false, $a_dir_text=false)
DEPRECATED.
setInfo($a_info)
Set Info.
Class ilObjectOwnershipManagementGUI.
handleTrashAction()
Handle Trash action.
Class ilObjSystemFolderGUI.
setSubTabs($a_section, $a_active)
Set subtabs.
getLang()
Get language obj.
trash(ilPropertyFormGUI $form=null)
Show trash form.
if(!is_array($argv)) $options
__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true)
executeCommand()
ilCtrl execute command
Class ilObjectGUI Basic methods of all Output classes.
getAdminTabs(&$tabs_gui)
administration tabs show only permissions and trash folder
prepareOutput()
prepare output
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Table GUI for system check groups overview.
Table GUI for system check task overview.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.