ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
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 
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 ?>