ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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{
13
20 {
21 parent::__construct($gui);
22 require_once 'Services/InfoScreen/classes/class.ilInfoScreenGUI.php';
23 }
24
31 public function executeDefault($method)
32 {
38 global $rbacsystem, $ilCtrl, $lng;
39
40 include_once 'Modules/Chatroom/classes/class.ilChatroom.php';
41
42 $this->redirectIfNoPermission('read');
43
44 $this->gui->switchToVisibleMode();
45
46 if(!$rbacsystem->checkAccess("visible", $this->gui->ref_id))
47 {
48 $this->gui->ilias->raiseError(
49 $lng->txt("msg_no_perm_read"), $this->ilias->error_obj->MESSAGE
50 );
51 }
52
53 $info = $this->createInfoScreenGUI($this->gui);
54
55 $info->enablePrivateNotes();
56
57 if($rbacsystem->checkAccess("read", (int)$_GET["ref_id"]))
58 {
59 $info->enableNews();
60 }
61
62 $info->addMetaDataSections(
63 $this->gui->object->getId(), 0, $this->gui->object->getType()
64 );
65 if(!$method)
66 {
67 $ilCtrl->setCmd('showSummary');
68 }
69 else
70 {
71 $ilCtrl->setCmd($method);
72 }
73 $ilCtrl->forwardCommand($info);
74 }
75
80 protected function createInfoScreenGUI($gui)
81 {
82 return new ilInfoScreenGUI($gui);
83 }
84}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Class ilChatroomGUIHandler.
executeDefault($requestedMethod)
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
Class ilChatroomInfoGUI Provides methods to prepare and display the info task.
__construct(ilChatroomObjectGUI $gui)
Constructor Requires ilInfoScreenGUI and sets $this->gui using given $gui.
Class ilInfoScreenGUI.
$info
Definition: example_052.php:80
global $lng
Definition: privfeed.php:17