ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilChatroomObjectGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Modules/Chatroom/classes/class.ilChatroomObjectDefinition.php';
5 require_once 'Modules/Chatroom/classes/class.ilChatroomGUIHandler.php';
6 require_once 'Services/UICore/classes/class.ilFrameTargetInfo.php';
7 
12 abstract class ilChatroomObjectGUI extends ilObjectGUI
13 {
20  protected function dispatchCall($gui, $method)
21  {
25  $definition = $this->getObjectDefinition();
26  if ($definition->hasGUI($gui)) {
27  $definition->loadGUI($gui);
28  $guiHandler = $definition->buildGUI($gui, $this);
29  $guiHandler->execute($method);
30  return true;
31  }
32 
33  return false;
34  }
35 
40  abstract protected function getObjectDefinition();
41 
46  abstract public function getConnector();
47 
51  public function switchToVisibleMode()
52  {
53  $this->prepareOutput();
54  }
55 
59  public function getAdminTabs()
60  {
61  global $DIC;
62 
63  if (isset($_GET['admin_mode']) && $_GET['admin_mode'] == 'repository') {
64  $this->ctrl->setParameterByClass('iladministrationgui', 'admin_mode', 'settings');
65  $this->tabs_gui->setBackTarget(
66  $this->lng->txt('administration'),
67  $this->ctrl->getLinkTargetByClass('iladministrationgui', 'frameset'),
68  ilFrameTargetInfo::_getFrame('MainContent')
69  );
70  $this->ctrl->setParameterByClass('iladministrationgui', 'admin_mode', 'repository');
71  }
72  if ($DIC->repositoryTree()->getSavedNodeData($this->object->getRefId())) {
73  $this->tabs_gui->addTarget('trash', $this->ctrl->getLinkTarget($this, 'trash'), 'trash', get_class($this));
74  }
75  }
76 }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
switchToVisibleMode()
Calls $this->prepareOutput() method.
prepareOutput($a_show_subobjects=true)
prepare output
Class ilObjectGUI Basic methods of all Output classes.
static _getFrame($a_class, $a_type='')
Get content frame name.
Create new PHPExcel object
obj_idprivate