ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
21 
25  protected $tabs_gui;
26 
27 
34  public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true) {
35  $this->type = 'bibs';
36  parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
37  $this->lng->loadLanguageModule('bibl');
38  //Check Permissions globally for all SubGUIs. We only check write permissions
39  $this->checkPermission('write');
40  }
41 
42 
47  public function executeCommand() {
48  $next_class = $this->ctrl->getNextClass($this);
49  switch ($next_class) {
50  case 'ilpermissiongui':
51  $this->prepareOutput();
52  $this->tabs_gui->setTabActive('perm_settings');
53  include_once('Services/AccessControl/classes/class.ilPermissionGUI.php');
54  $perm_gui = new ilPermissionGUI($this);
55  $this->ctrl->forwardCommand($perm_gui);
56  break;
57  default:
58  $this->prepareOutput();
59  $ilObjBibliographicAdminLibrariesGUI = new ilObjBibliographicAdminLibrariesGUI($this);
60  $this->ctrl->forwardCommand($ilObjBibliographicAdminLibrariesGUI);
61  break;
62  }
63  }
64 
65 
66  public function getAdminTabs() {
67  global $DIC;
68  $rbacsystem = $DIC['rbacsystem'];
73  if ($rbacsystem->checkAccess('visible,read', $this->object->getRefId())) {
74  $this->tabs_gui->addTarget('settings', $this->ctrl->getLinkTargetByClass(array(
75  'ilObjBibliographicAdminGUI',
76  'ilObjBibliographicAdminLibrariesGUI',
77  ), 'view'));
78  }
79  if ($rbacsystem->checkAccess('edit_permission', $this->object->getRefId())) {
80  $this->tabs_gui->addTarget('perm_settings', $this->ctrl->getLinkTargetByClass('ilpermissiongui', 'perm'), array(), 'ilpermissiongui');
81  }
82  }
83 
84 
88  public function getTabsGui() {
89  return $this->tabs_gui;
90  }
91 
92 
96  public function setTabsGui($tabs_gui) {
97  $this->tabs_gui = $tabs_gui;
98  }
99 }
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)
Create styles array
The data for the language used.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
global $DIC
getAdminTabs()
administration tabs show only permissions and trash folder