Class ilChatroomGUIHandler.
More...
◆ canModerate()
| ilChatroomGUIHandler::canModerate |
( |
ilChatroom |
$room, |
|
|
int |
$subRoom, |
|
|
int |
$usrId |
|
) |
| |
|
protected |
◆ execute()
| ilChatroomGUIHandler::execute |
( |
string |
$method | ) |
|
Definition at line 112 of file class.ilChatroomGUIHandler.php.
112 : void
113 {
114 $this->ilLng->loadLanguageModule('chatroom');
115
116 if (method_exists($this, $method)) {
117 $this->$method();
118 return;
119 }
120
122 }
executeDefault(string $requestedMethod)
References executeDefault().
◆ executeDefault()
| ilChatroomGUIHandler::executeDefault |
( |
string |
$requestedMethod | ) |
|
|
abstract |
Reimplemented in ilChatroomAdminSmileyGUI, ilChatroomAdminSmiliesGUI, ilChatroomAdminViewGUI, ilChatroomBanGUI, ilChatroomClearGUI, ilChatroomCreateGUI, ilChatroomHistoryGUI, ilChatroomInfoGUI, ilChatroomInviteUsersToPrivateRoomGUI, ilChatroomKickGUI, ilChatroomPollGUI, ilChatroomPrivateRoomGUI, ilChatroomSettingsGUI, and ilChatroomViewGUI.
Referenced by execute().
◆ exitIfNoRoomExists()
| ilChatroomGUIHandler::exitIfNoRoomExists |
( |
?ilChatroom |
$room | ) |
|
|
protected |
Checks if a ilChatroom exists.
If not, it will send a json encoded response with success = false
- Parameters
-
Definition at line 163 of file class.ilChatroomGUIHandler.php.
163 : void
164 {
165 if (null === $room) {
167 'success' => false,
168 'reason' => 'unknown room',
169 ]);
170 }
171 }
sendResponse($response, bool $isJson=false)
Sends a json encoded response and exits the php process.
References sendResponse().
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomBanGUI\delete(), ilChatroomPrivateRoomGUI\delete(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomPrivateRoomGUI\leave(), ilChatroomPrivateRoomGUI\listUsers(), ilChatroomKickGUI\main(), and ilChatroomBanGUI\show().
◆ exitIfNoRoomModeratePermission()
◆ getRequestValue()
| ilChatroomGUIHandler::getRequestValue |
( |
string |
$key, |
|
|
Transformation |
$trafo, |
|
|
|
$default = null |
|
) |
| |
|
protected |
- Parameters
-
| string | $key | |
| Transformation | $trafo | |
| mixed | $default | |
- Returns
- mixed|null
Definition at line 90 of file class.ilChatroomGUIHandler.php.
91 {
92 if ($this->
http->wrapper()->query()->has(
$key)) {
93 return $this->
http->wrapper()->query()->retrieve(
$key, $trafo);
94 }
95
96 if ($this->
http->wrapper()->post()->has(
$key)) {
97 return $this->
http->wrapper()->post()->retrieve(
$key, $trafo);
98 }
99
100 return $default;
101 }
static http()
Fetches the global http state from ILIAS.
References ILIAS\FileDelivery\http().
Referenced by ilChatroomBanGUI\active(), ilChatroomInviteUsersToPrivateRoomGUI\byId(), ilChatroomInviteUsersToPrivateRoomGUI\byLogin(), ilChatroomAdminSmileyGUI\confirmedDeleteMultipleObject(), ilChatroomPrivateRoomGUI\create(), ilChatroomBanGUI\delete(), ilChatroomPrivateRoomGUI\delete(), ilChatroomAdminSmileyGUI\deleteMultipleObject(), ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomInfoGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\getUserList(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomViewGUI\joinWithCustomName(), ilChatroomPrivateRoomGUI\leave(), ilChatroomPrivateRoomGUI\listUsers(), ilChatroomKickGUI\main(), ilChatroomAdminSmileyGUI\showDeleteSmileyFormObject(), ilChatroomAdminSmileyGUI\showEditSmileyEntryFormObject(), and ilChatroomKickGUI\sub().
◆ getRoomByObjectId()
| ilChatroomGUIHandler::getRoomByObjectId |
( |
int |
$objectId | ) |
|
|
protected |
◆ hasPermission()
| ilChatroomGUIHandler::hasPermission |
( |
string |
$permission | ) |
|
◆ hasRequestValue()
| ilChatroomGUIHandler::hasRequestValue |
( |
string |
$key | ) |
|
|
protected |
◆ isMainRoom()
| ilChatroomGUIHandler::isMainRoom |
( |
int |
$subRoomId | ) |
|
|
protected |
◆ isSuccessful()
| ilChatroomGUIHandler::isSuccessful |
( |
|
$response | ) |
|
◆ redirectIfNoPermission()
| ilChatroomGUIHandler::redirectIfNoPermission |
( |
|
$permission | ) |
|
Checks for requested permissions and redirects if the permission check failed.
- Parameters
-
| string[] | string | $permission | |
Definition at line 130 of file class.ilChatroomGUIHandler.php.
130 : void
131 {
135 }
136 }
Class ilCtrl provides processing control methods.
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
References ilChatroom\checkUserPermissions(), ilCtrl\redirectByClass(), ROOT_FOLDER_ID, and ilCtrl\setParameterByClass().
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomInfoGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomViewGUI\joinWithCustomName(), ilChatroomPrivateRoomGUI\leave(), ilChatroomPrivateRoomGUI\listUsers(), ilChatroomAdminViewGUI\saveClientSettings(), and ilChatroomBanGUI\show().
◆ sendResponse()
| ilChatroomGUIHandler::sendResponse |
( |
|
$response, |
|
|
bool |
$isJson = false |
|
) |
| |
Sends a json encoded response and exits the php process.
- Parameters
-
| mixed | $response | |
| bool | $isJson | |
Definition at line 178 of file class.ilChatroomGUIHandler.php.
178 : void
179 {
180 $this->
http->saveResponse(
181 $this->
http->response()
182 ->withHeader(ResponseHeader::CONTENT_TYPE, 'application/json')
183 ->withBody(Streams::ofString($isJson ?
$response : json_encode(
$response, JSON_THROW_ON_ERROR)))
184 );
185 $this->
http->sendResponse();
186 $this->
http->close();
187 }
References $response, and ILIAS\FileDelivery\http().
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\delete(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomPollGUI\executeDefault(), ilChatroomPrivateRoomGUI\exitIfEnterRoomIsNotAllowed(), exitIfNoRoomExists(), exitIfNoRoomModeratePermission(), ilChatroomPrivateRoomGUI\exitIfNoRoomSubscription(), ilChatroomInviteUsersToPrivateRoomGUI\getUserList(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomPrivateRoomGUI\leave(), ilChatroomPrivateRoomGUI\listUsers(), ilChatroomKickGUI\main(), and ilChatroomKickGUI\sub().
◆ $gui
◆ $http
◆ $ilCtrl
◆ $ilias
| ILIAS ilChatroomGUIHandler::$ilias |
|
protected |
◆ $ilLng
◆ $ilUser
◆ $mainTpl
◆ $navigationHistory
◆ $obj_service
◆ $rbacsystem
◆ $refinery
| Refinery ilChatroomGUIHandler::$refinery |
|
protected |
◆ $tabs
◆ $tree
| ilTree ilChatroomGUIHandler::$tree |
|
protected |
◆ $uiFactory
| UIFactory ilChatroomGUIHandler::$uiFactory |
|
protected |
◆ $uiRenderer
| UIRenderer ilChatroomGUIHandler::$uiRenderer |
|
protected |
◆ $upload
◆ $webDirectory
The documentation for this class was generated from the following file: