ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 {
19  protected function dispatchCall($gui, $method)
20  {
24  $definition = $this->getObjectDefinition();
25  if($definition->hasGUI($gui))
26  {
27  $definition->loadGUI($gui);
28  $guiHandler = $definition->buildGUI($gui, $this);
29  $guiHandler->execute($method);
30  }
31  }
32 
37  abstract protected function getObjectDefinition();
38 
43  abstract public function getConnector();
44 
48  public function switchToVisibleMode()
49  {
50  $this->prepareOutput();
51  }
52 
56  public function getAdminTabs()
57  {
61  global $tree;
62 
63  if(isset($_GET['admin_mode']) && $_GET['admin_mode'] == 'repository')
64  {
65  $this->ctrl->setParameterByClass('iladministrationgui', 'admin_mode', 'settings');
66  $this->tabs_gui->setBackTarget(
67  $this->lng->txt('administration'),
68  $this->ctrl->getLinkTargetByClass('iladministrationgui', 'frameset'),
69  ilFrameTargetInfo::_getFrame('MainContent')
70  );
71  $this->ctrl->setParameterByClass('iladministrationgui', 'admin_mode', 'repository');
72  }
73  if($tree->getSavedNodeData($this->object->getRefId()))
74  {
75  $this->tabs_gui->addTarget('trash', $this->ctrl->getLinkTarget($this, 'trash'), 'trash', get_class($this));
76  }
77  }
78 }
$_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.
getAdminTabs()
administration tabs show only permissions and trash folder