ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
class.ilObjSystemCheckGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once 'Services/Object/classes/class.ilObjectGUI.php';
5include_once 'Services/Form/classes/class.ilPropertyFormGUI.php';
6include_once 'Services/Utilities/classes/class.ilConfirmationGUI.php';
7
15{
19 public $lng;
20
24 public $ctrl;
25
32 public function __construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output = true)
33 {
34 $this->type = 'sysc';
35 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
36 $this->lng->loadLanguageModule('sysc');
37 }
38
42 public function executeCommand()
43 {
44 $next_class = $this->ctrl->getNextClass($this);
45 $cmd = $this->ctrl->getCmd();
46 $this->prepareOutput();
47
48 switch($next_class)
49 {
50 case 'ilpermissiongui':
51 $this->tabs_gui->setTabActive('perm_settings');
52 require_once 'Services/AccessControl/classes/class.ilPermissionGUI.php';
53 $perm_gui = new ilPermissionGUI($this);
54 $this->ctrl->forwardCommand($perm_gui);
55 break;
56
57 default:
58 if($cmd == '' || $cmd == 'view')
59 {
60 $cmd = 'overview';
61 }
62 $this->$cmd();
63 break;
64 }
65 }
66
71 public function getAdminTabs(ilTabsGUI $tabs_gui)
72 {
76 global $rbacsystem;
77
78 if($rbacsystem->checkAccess('read', $this->object->getRefId()))
79 {
80 $tabs_gui->addTarget('overview', $this->ctrl->getLinkTarget($this, 'overview'));
81 }
82 if($rbacsystem->checkAccess('edit_permission', $this->object->getRefId()))
83 {
84 $tabs_gui->addTarget('perm_settings', $this->ctrl->getLinkTargetByClass(array(get_class($this), 'ilpermissiongui'), 'perm'), array('perm', 'info', 'owner'), 'ilpermissiongui');
85 }
86 }
87
91 protected function overview()
92 {
93 }
94
95}
96?>
__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.
prepareOutput()
prepare output
getAdminTabs(&$tabs_gui)
administration tabs show only permissions and trash folder
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
Tabs GUI.
addTarget($a_text, $a_link, $a_cmd="", $a_cmdClass="", $a_frame="", $a_activate=false, $a_dir_text=false)
DEPRECATED.
$cmd
Definition: sahs_server.php:35