ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
28  public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true) {
29  $this->type = 'bibs';
30  parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
31  $this->lng->loadLanguageModule('bibl');
32  //Check Permissions globally for all SubGUIs. We only check write permissions
33  $this->checkPermission('write');
34  }
35 
36 
41  public function executeCommand() {
42  $next_class = $this->ctrl->getNextClass($this);
43  switch ($next_class) {
44  case 'ilpermissiongui':
45  $this->prepareOutput();
46  $this->tabs_gui->setTabActive('perm_settings');
47  include_once('Services/AccessControl/classes/class.ilPermissionGUI.php');
48  $perm_gui = new ilPermissionGUI($this);
49  $this->ctrl->forwardCommand($perm_gui);
50  break;
51  default:
52  $this->prepareOutput();
53  $ilObjBibliographicAdminLibrariesGUI = new ilObjBibliographicAdminLibrariesGUI($this);
54  $this->ctrl->forwardCommand($ilObjBibliographicAdminLibrariesGUI);
55  break;
56  }
57  }
58 
59 
60  public function getAdminTabs() {
61  global $rbacsystem;
66  if ($rbacsystem->checkAccess('visible,read', $this->object->getRefId())) {
67  $this->tabs_gui->addTarget('settings', $this->ctrl->getLinkTargetByClass(array(
68  'ilObjBibliographicAdminGUI',
69  'ilObjBibliographicAdminLibrariesGUI'
70  ), 'view'));
71  }
72  if ($rbacsystem->checkAccess('edit_permission', $this->object->getRefId())) {
73  $this->tabs_gui->addTarget('perm_settings', $this->ctrl->getLinkTargetByClass('ilpermissiongui', 'perm'), array(), 'ilpermissiongui');
74  }
75  }
76 }