ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilObjBibliographicAdminGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 include_once('./Services/Object/classes/class.ilObjectGUI.php');
4 include_once('./Modules/Bibliographic/classes/Admin/class.ilObjBibliographicAdminTableGUI.php');
5 include_once('./Modules/Bibliographic/classes/Admin/class.ilBibliographicSetting.php');
6 include_once('./Modules/Bibliographic/classes/Admin/class.ilObjBibliographicAdminLibrariesGUI.php');
7 include_once('./Modules/Bibliographic/classes/Admin/class.ilObjBibliographicAdminLibrariesFormGUI.php');
8 
22 {
23 
27  protected $type = 'bibs';
31  protected $tabs_gui;
32 
33 
44  public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
45  {
46  $this->type = 'bibs';
47  parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
48  $this->lng->loadLanguageModule('bibl');
49  // Check Permissions globally for all SubGUIs. We check read-permission first
50  if (!$this->rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
51  $this->ilErr->raiseError($this->lng->txt("no_permission"), $this->ilErr->WARNING);
52  }
53  }
54 
55 
60  public function executeCommand()
61  {
62  $next_class = $this->ctrl->getNextClass($this);
63  switch ($next_class) {
64  case 'ilpermissiongui':
65  $this->prepareOutput();
66  $this->tabs_gui->setTabActive('perm_settings');
67  include_once('Services/AccessControl/classes/class.ilPermissionGUI.php');
68  $perm_gui = new ilPermissionGUI($this);
69  $this->ctrl->forwardCommand($perm_gui);
70  break;
71  default:
72  $this->prepareOutput();
73  $ilObjBibliographicAdminLibrariesGUI = new ilObjBibliographicAdminLibrariesGUI($this);
74  $this->ctrl->forwardCommand($ilObjBibliographicAdminLibrariesGUI);
75  break;
76  }
77  }
78 
79 
80  public function getAdminTabs()
81  {
82  global $DIC;
83  $rbacsystem = $DIC['rbacsystem'];
88  if ($rbacsystem->checkAccess('visible,read', $this->object->getRefId())) {
89  $this->tabs_gui->addTarget('settings', $this->ctrl->getLinkTargetByClass(array(
90  'ilObjBibliographicAdminGUI',
91  'ilObjBibliographicAdminLibrariesGUI',
92  ), 'view'));
93  }
94  if ($rbacsystem->checkAccess('edit_permission', $this->object->getRefId())) {
95  $this->tabs_gui->addTarget('perm_settings', $this->ctrl->getLinkTargetByClass('ilpermissiongui', 'perm'), array(), 'ilpermissiongui');
96  }
97  }
98 
99 
103  public function getTabsGui()
104  {
105  return $this->tabs_gui;
106  }
107 
108 
112  public function setTabsGui($tabs_gui)
113  {
114  $this->tabs_gui = $tabs_gui;
115  }
116 }
global $DIC
Definition: saml.php:7
Bibliographic Administration Settings.
prepareOutput($a_show_subobjects=true)
prepare output
Class ilObjectGUI Basic methods of all Output classes.
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
ilObjBibliographicAdminGUI constructor.
Create styles array
The data for the language used.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
getAdminTabs()
administration tabs show only permissions and trash folder