ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilObjChatroomAdminGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Object/classes/class.ilObjectGUI.php';
5require_once 'Modules/Chatroom/classes/class.ilObjChatroom.php';
6require_once 'Modules/Chatroom/classes/class.ilObjChatroomAccess.php';
7require_once 'Modules/Chatroom/classes/class.ilChatroomObjectGUI.php';
8
20{
24 public function __construct($a_data = null, $a_id = null, $a_call_by_reference = true)
25 {
26 global $DIC;
27
28 $DIC->language()->loadLanguageModule('chatroom_adm');
29
30 if ($a_data == null) {
31 if ($_GET['serverInquiry']) {
32 require_once dirname(__FILE__) . '/class.ilChatroomServerHandler.php';
34 return;
35 }
36 }
37
38 $this->type = 'chta';
39 parent::__construct($a_data, $a_id, $a_call_by_reference, false);
40 }
41
46 public static function _goto($ref_id)
47 {
48 include_once 'Services/Object/classes/class.ilObjectGUI.php';
50 }
51
57 protected function getObjectDefinition()
58 {
60 'Chatroom',
61 'admin'
62 );
63 }
64
69 public function _forwards()
70 {
71 return array();
72 }
73
77 public function executeCommand()
78 {
79 global $DIC;
80
81 $next_class = $DIC->ctrl()->getNextClass();
82
83 require_once 'Modules/Chatroom/classes/class.ilChatroomTabGUIFactory.php';
84
85 $tabFactory = new ilChatroomTabGUIFactory($this);
86 $tabFactory->getAdminTabsForCommand($DIC->ctrl()->getCmd());
87
88 switch ($next_class) {
89 case 'ilpermissiongui':
90 include_once 'Services/AccessControl/classes/class.ilPermissionGUI.php';
91 $this->prepareOutput();
92 $perm_gui = new ilPermissionGUI($this);
93 $DIC->ctrl()->forwardCommand($perm_gui);
94 break;
95
96 default:
97 $res = explode('-', $DIC->ctrl()->getCmd(), 2);
98 if (!array_key_exists(1, $res)) {
99 $res[1] = '';
100 }
101 $this->dispatchCall($res[0], $res[1]);
102 }
103 }
104
108 public function getConnector()
109 {
110 require_once 'Modules/Chatroom/classes/class.ilChatroomServerConnector.php';
111 require_once 'Modules/Chatroom/classes/class.ilChatroomServerSettings.php';
112
114 $connector = new ilChatroomServerConnector($settings);
115
116 return $connector;
117 }
118
123 public function getRefId()
124 {
125 return $this->object->getRefId();
126 }
127}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
static getDefaultDefinitionWithCustomGUIPath($moduleName, $guiScope='')
Returns an Instance of ilChatroomObjectDefinition, using given $moduleName and $guiScope as parameter...
Class ilChatroomServerConnector.
Class ilChatroomServerHandler.
Class ilChatroomTabGUIFactory.
Class ilObjChatroomAdminGUI GUI class for chatroom objects.
getObjectDefinition()
Returns object definition by calling getDefaultDefinitionWithCustomGUIPath method in ilChatroomObject...
__construct($a_data=null, $a_id=null, $a_call_by_reference=true)
{}
static _goto($ref_id)
Overwrites $_GET['ref_id'] with given $ref_id.
prepareOutput($a_show_subobjects=true)
prepare output
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res