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)
36 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
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);
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');
98 $GLOBALS[
'ilTabs']->setBackTarget($this->lng->txt(
'back'), $this->ctrl->getLinkTarget($this,
'showGroup'));
100 $this->ctrl->forwardCommand(
$handler);
118 if ($rbacsystem->checkAccess(
'read', $this->object->getRefId())) {
119 $this->tabs_gui->addTarget(
'overview', $this->ctrl->getLinkTarget($this,
'overview'));
121 if ($rbacsystem->checkAccess(
'edit_permission', $this->object->getRefId())) {
122 $this->tabs_gui->addTarget(
'perm_settings', $this->ctrl->getLinkTargetByClass(
array(get_class($this),
'ilpermissiongui'),
'perm'),
array(
'perm',
'info',
'owner'),
'ilpermissiongui');
131 $this->
getLang()->loadLanguageModule(
'sysc');
134 $this->
setSubTabs(self::SECTION_MAIN,
'overview');
137 include_once
'Services/SystemCheck/classes/class.ilSCGroupTableGUI.php';
154 $grp_id = (int) $_REQUEST[
'grp_id'];
155 $this->ctrl->saveParameter($this,
'grp_id');
157 include_once
'Services/SystemCheck/classes/class.ilSCTaskTableGUI.php';
175 $this->
setSubTabs(self::SECTION_MAIN,
'trash');
188 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
190 $form->setFormAction($this->ctrl->getFormAction($this));
192 $form->setTitle($this->lng->txt(
'sysc_administrate_deleted'));
199 $restore->
setInfo($this->lng->txt(
'sysc_trash_restore_info'));
204 $remove->
setInfo($this->lng->txt(
'sysc_trash_remove_info'));
208 $num =
new ilNumberInputGUI($this->lng->txt(
'sysc_trash_limit_num'),
'number');
209 $num->
setInfo($this->lng->txt(
'purge_count_limit_desc'));
211 $num->setMinValue(1);
212 $remove->addSubItem($num);
215 $age->
setInfo($this->lng->txt(
'purge_age_limit_desc'));
216 $age->setMinuteStepSize(15);
217 #$earlier = new ilDateTime(time(),IL_CAL_UNIX); 218 #$earlier->increment(IL_CAL_MONTH,-6); 219 #$age->setDate($earlier); 220 $remove->addSubItem($age);
223 $types =
new ilSelectInputGUI($this->lng->txt(
'sysc_trash_limit_type'),
'types');
231 foreach ($sub_objects as $obj_type) {
232 if (!
$GLOBALS[
'objDefinition']->isRBACObject($obj_type) or !
$GLOBALS[
'objDefinition']->isAllowedInRepository($obj_type)) {
235 $options[$obj_type] = $this->lng->txt(
'obj_' . $obj_type);
241 $remove->addSubItem($types);
246 $form->addCommandButton(
'handleTrashAction', $this->lng->txt(
'start_scan'));
247 $form->addCommandButton(
'', $this->lng->txt(
'cancel'));
258 if (
$form->checkInput()) {
261 $dt =
$form->getItemByPostVar(
'age')->getDate();
263 $trash->setAgeLimit($dt);
265 $trash->setNumberLimit(
$form->getInput(
'number'));
267 if (
$form->getInput(
'types')) {
268 $trash->setTypesLimit((
array)
$form->getInput(
'types'));
270 $trash->setMode(
$form->getInput(
'type'));
274 $form->setValuesByPost();
280 $form->setValuesByPost();
292 switch ($a_section) {
293 case self::SECTION_MAIN:
296 $this->
getLang()->txt(
'sysc_groups'),
297 $this->ctrl->getLinkTarget($this,
'overview')
301 $this->
getLang()->txt(
'sysc_tab_trash'),
302 $this->ctrl->getLinkTarget($this,
'trash')
306 $this->
getLang()->txt(
'system_check_no_owner'),
307 $this->ctrl->getLinkTargetByClass(
'ilobjectownershipmanagementgui')
311 case self::SECTION_GROUP:
314 $this->lng->txt(
'back'),
315 $this->ctrl->getLinkTarget($this,
'overview')
318 $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.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
initFormTrash()
Show trash restore form.
static getComponentTask($a_task_id)
showGroup()
Show group tasks.
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.
prepareOutput($a_show_subobjects=true)
prepare output
if(isset($_POST['submit'])) $form
__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.
Create styles array
The data for the language used.
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(empty($password)) $table
getAdminTabs()
administration tabs show only permissions and trash folder
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options