ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjTaxonomyAdministrationGUI.php
Go to the documentation of this file.
1 <?php
2 
25 {
27 
31  public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
32  {
33  global $DIC;
34 
35  $this->rbacsystem = $DIC->rbac()->system();
36  $this->type = "taxs";
37  parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
38 
39  $this->lng->loadLanguageModule("tax");
40  }
41 
45  public function executeCommand(): void
46  {
47  $next_class = $this->ctrl->getNextClass($this);
48  $cmd = $this->ctrl->getCmd();
49 
50  $this->prepareOutput();
51 
52  if ($next_class == 'ilpermissiongui') {
53  $this->tabs_gui->activateTab('perm_settings');
54  $perm_gui = new ilPermissionGUI($this);
55  $this->ctrl->forwardCommand($perm_gui);
56  } else {
57  if (!$cmd || $cmd == 'view') {
58  $cmd = "listRepository";
59  }
60  $this->$cmd();
61  }
62  }
63 
67  public function getAdminTabs(): void
68  {
69  $rbacsystem = $this->rbacsystem;
70 
71  if ($rbacsystem->checkAccess("visible,read", $this->object->getRefId())) {
72  $this->tabs_gui->addTab(
73  "settings",
74  $this->lng->txt("tax_admin_settings_repository"),
75  $this->ctrl->getLinkTarget($this, "listRepository")
76  );
77  }
78 
79  if ($rbacsystem->checkAccess('edit_permission', $this->object->getRefId())) {
80  $this->tabs_gui->addTab(
81  "perm_settings",
82  $this->lng->txt("perm_settings"),
83  $this->ctrl->getLinkTargetByClass('ilpermissiongui', "perm")
84  );
85  }
86  }
87 
91  public function listRepository(): void
92  {
93  $this->tabs_gui->activateTab('settings');
94  $tbl = new ilTaxonomyAdministrationRepositoryTableGUI($this, "listRepository", $this->object);
95  $this->tpl->setContent($tbl->getHTML());
96  }
97 }
prepareOutput(bool $show_sub_objects=true)
listRepository()
List taxonomies of repository objects.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...
Class ilObjectGUI Basic methods of all Output classes.
__construct(Container $dic, ilPlugin $plugin)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...