ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilChatroomInfoGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
12{
16 public function executeDefault($requestedMethod)
17 {
18 $this->redirectIfNoPermission('visible');
19
20 $this->gui->switchToVisibleMode();
21
22 $info = $this->createInfoScreenGUI($this->gui);
23
24 $info->enablePrivateNotes();
25
26 if (ilChatroom::checkUserPermissions("read", (int) $_GET["ref_id"], false)) {
27 $info->enableNews();
28 }
29
30 $info->addMetaDataSections(
31 $this->gui->object->getId(),
32 0,
33 $this->gui->object->getType()
34 );
35 if (!$method) {
36 $this->ilCtrl->setCmd('showSummary');
37 } else {
38 $this->ilCtrl->setCmd($method);
39 }
40 $this->ilCtrl->forwardCommand($info);
41 }
42
47 protected function createInfoScreenGUI($gui)
48 {
49 return new ilInfoScreenGUI($gui);
50 }
51}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Class ilChatroomGUIHandler.
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
Class ilChatroomInfoGUI Provides methods to prepare and display the info task.
executeDefault($requestedMethod)
@inheritDoc
static checkUserPermissions($permissions, $ref_id, $send_info=true)
Checks user permissions by given array and ref_id.
This class provides processing control methods.
forwardCommand($a_gui_object)
Forward flow of control to next gui class this invokes the executeCommand() method of the gui object ...
setCmd($a_cmd)
Set the current command.
Class ilInfoScreenGUI.