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
4require_once 'Modules/Chatroom/classes/class.ilChatroomObjectDefinition.php';
5require_once 'Modules/Chatroom/classes/class.ilChatroomGUIHandler.php';
6require_once 'Services/UICore/classes/class.ilFrameTargetInfo.php';
7
12abstract 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}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
getAdminTabs()
{administration tabs show only permissions and trash folder}
switchToVisibleMode()
Calls $this->prepareOutput() method.
static _getFrame($a_class, $a_type='')
Get content frame name.
Class ilObjectGUI Basic methods of all Output classes.
prepareOutput($a_show_subobjects=true)
prepare output
global $DIC
Definition: saml.php:7