ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
4 require_once 'Services/Object/classes/class.ilObjectGUI.php';
5 require_once 'Modules/Chatroom/classes/class.ilObjChatroom.php';
6 require_once 'Modules/Chatroom/classes/class.ilObjChatroomAccess.php';
7 require_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 }
Class ilObjChatroomAdminGUI GUI class for chatroom objects.
Class ilChatroomServerHandler.
global $DIC
Definition: saml.php:7
static _goto($ref_id)
Overwrites $_GET[&#39;ref_id&#39;] with given $ref_id.
$_GET["client_id"]
_forwards()
Returns empty array.
prepareOutput($a_show_subobjects=true)
prepare output
foreach($_POST as $key=> $value) $res
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.
Class ilChatroomServerConnector.
static getDefaultDefinitionWithCustomGUIPath($moduleName, $guiScope='')
Returns an Instance of ilChatroomObjectDefinition, using given $moduleName and $guiScope as parameter...
__construct($a_data=null, $a_id=null, $a_call_by_reference=true)
{}
Create styles array
The data for the language used.
Class ilChatroomTabGUIFactory.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
getObjectDefinition()
Returns object definition by calling getDefaultDefinitionWithCustomGUIPath method in ilChatroomObject...