ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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{
18 public function executeDefault($method)
19 {
20 $this->redirectIfNoPermission('visible');
21
22 $this->gui->switchToVisibleMode();
23
24 $info = $this->createInfoScreenGUI($this->gui);
25
26 $info->enablePrivateNotes();
27
28 if (ilChatroom::checkUserPermissions("read", (int) $_GET["ref_id"], false)) {
29 $info->enableNews();
30 }
31
32 $info->addMetaDataSections(
33 $this->gui->object->getId(),
34 0,
35 $this->gui->object->getType()
36 );
37 if (!$method) {
38 $this->ilCtrl->setCmd('showSummary');
39 } else {
40 $this->ilCtrl->setCmd($method);
41 }
42 $this->ilCtrl->forwardCommand($info);
43 }
44
49 protected function createInfoScreenGUI($gui)
50 {
51 return new ilInfoScreenGUI($gui);
52 }
53}
$_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($method)
Prepares and displays the info screen.
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.