ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilObjTaxonomyAdministrationGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/Object/classes/class.ilObjectGUI.php");
5
17{
23 public function __construct($a_data, $a_id, $a_call_by_reference = true, $a_prepare_output = true)
24 {
25 $this->type = "taxs";
26 parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
27
28 $this->lng->loadLanguageModule("tax");
29 }
30
34 public function executeCommand()
35 {
36 $next_class = $this->ctrl->getNextClass($this);
37 $cmd = $this->ctrl->getCmd();
38
39 $this->prepareOutput();
40
41 switch($next_class)
42 {
43 case 'ilpermissiongui':
44 $this->tabs_gui->activateTab('perm_settings');
45 include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
46 $perm_gui = new ilPermissionGUI($this);
47 $this->ctrl->forwardCommand($perm_gui);
48 break;
49
50 default:
51 if(!$cmd || $cmd == 'view')
52 {
53 $cmd = "listRepository";
54 }
55
56 $this->$cmd();
57 break;
58 }
59 return true;
60 }
61
65 public function getAdminTabs()
66 {
67 global $rbacsystem;
68
69 if ($rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
70 {
71 $this->tabs_gui->addTab("settings",
72 $this->lng->txt("tax_admin_settings_repository"),
73 $this->ctrl->getLinkTarget($this, "listRepository"));
74 }
75
76 if ($rbacsystem->checkAccess('edit_permission',$this->object->getRefId()))
77 {
78 $this->tabs_gui->addTab("perm_settings",
79 $this->lng->txt("perm_settings"),
80 $this->ctrl->getLinkTargetByClass('ilpermissiongui',"perm"));
81 }
82 }
83
87 public function listRepository()
88 {
89 $this->tabs_gui->activateTab('settings');
90
91 require_once "Services/Taxonomy/classes/class.ilTaxonomyAdministrationRepositoryTableGUI.php";
92 $tbl = new ilTaxonomyAdministrationRepositoryTableGUI($this, "listRepository", $this->object);
93 $this->tpl->setContent($tbl->getHTML());
94 }
95}
96
97?>
listRepository()
List taxonomies of repository objects.
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
Contructor.
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput()
prepare output
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
$tbl
Definition: example_048.php:81
$cmd
Definition: sahs_server.php:35