Class ilChatroomGUIHandler.
More...
◆ canModerate()
ilChatroomGUIHandler::canModerate |
( |
ilChatroom |
$room, |
|
|
int |
$subRoom, |
|
|
int |
$usrId |
|
) |
| |
|
protected |
◆ execute()
ilChatroomGUIHandler::execute |
( |
string |
$method | ) |
|
◆ executeDefault()
ilChatroomGUIHandler::executeDefault |
( |
string |
$requestedMethod | ) |
|
|
abstract |
◆ 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.
References sendResponse().
Referenced by ilChatroomBanGUI\active(), ilChatroomHistoryGUI\byDay(), ilChatroomHistoryGUI\bySession(), ilChatroomPrivateRoomGUI\create(), ilChatroomBanGUI\delete(), ilChatroomPrivateRoomGUI\delete(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomPrivateRoomGUI\leave(), ilChatroomPrivateRoomGUI\listUsers(), ilChatroomKickGUI\main(), and ilChatroomBanGUI\show().
165 if (null === $room) {
168 'reason' =>
'unknown room',
sendResponse($response, bool $isJson=false)
Sends a json encoded response and exits the php process.
◆ 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.
References ILIAS\FileDelivery\http().
Referenced by ilChatroomBanGUI\active(), ilChatroomHistoryGUI\byDay(), ilChatroomInviteUsersToPrivateRoomGUI\byId(), ilChatroomInviteUsersToPrivateRoomGUI\byLogin(), ilChatroomHistoryGUI\bySession(), 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\invitePD(), ilChatroomViewGUI\joinWithCustomName(), ilChatroomPrivateRoomGUI\leave(), ilChatroomPrivateRoomGUI\listUsers(), ilChatroomViewGUI\lostConnection(), ilChatroomKickGUI\main(), ilChatroomAdminSmileyGUI\showDeleteSmileyFormObject(), ilChatroomAdminSmileyGUI\showEditSmileyEntryFormObject(), ilChatroomHistoryGUI\showMessages(), ilChatroomViewGUI\showRoom(), and ilChatroomKickGUI\sub().
92 if ($this->
http->wrapper()->query()->has(
$key)) {
93 return $this->
http->wrapper()->query()->retrieve(
$key, $trafo);
96 if ($this->
http->wrapper()->post()->has(
$key)) {
97 return $this->
http->wrapper()->post()->retrieve(
$key, $trafo);
static http()
Fetches the global http state from ILIAS.
◆ 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.
References ilChatroom\checkUserPermissions(), and ROOT_FOLDER_ID.
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomInfoGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomViewGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomViewGUI\joinWithCustomName(), ilChatroomPrivateRoomGUI\leave(), ilChatroomPrivateRoomGUI\listUsers(), ilChatroomAdminViewGUI\saveClientSettings(), ilChatroomBanGUI\show(), ilChatroomHistoryGUI\showMessages(), ilChatroomViewGUI\showRoom(), and ilChatroomViewGUI\toggleAutoMessageDisplayState().
134 $this->
ilCtrl->redirectByClass(ilRepositoryGUI::class);
static checkUserPermissions($permissions, int $ref_id, bool $send_info=true)
Checks user permissions by given array and ref_id.
◆ 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.
References $response, and ILIAS\FileDelivery\http().
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\delete(), ilChatroomPrivateRoomGUI\enter(), ilChatroomPollGUI\executeDefault(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomPrivateRoomGUI\exitIfEnterRoomIsNotAllowed(), exitIfNoRoomExists(), exitIfNoRoomModeratePermission(), ilChatroomPrivateRoomGUI\exitIfNoRoomSubscription(), ilChatroomInviteUsersToPrivateRoomGUI\getUserList(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomPrivateRoomGUI\leave(), ilChatroomPrivateRoomGUI\listUsers(), ilChatroomViewGUI\lostConnection(), ilChatroomKickGUI\main(), and ilChatroomKickGUI\sub().
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)))
185 $this->
http->sendResponse();
186 $this->
http->close();
static http()
Fetches the global http state from ILIAS.
◆ $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: