Class ilChatroomGUIHandler.
More...
◆ __construct()
- Parameters
-
Definition at line 82 of file class.ilChatroomGUIHandler.php.
References $DIC, and $gui.
87 $this->ilUser = $DIC->user();
88 $this->
ilCtrl = $DIC->ctrl();
89 $this->ilLng = $DIC->language();
90 $this->rbacsystem = $DIC->rbac()->system();
91 $this->mainTpl = $DIC->ui()->mainTemplate();
92 $this->upload = $DIC->upload();
93 $this->webDirectory = $DIC->filesystem()->web();
94 $this->obj_service = $DIC->object();
95 $this->
ilias = $DIC[
'ilias'];
96 $this->tabs = $DIC->tabs();
97 $this->navigationHistory = $DIC[
'ilNavigationHistory'];
98 $this->tree = $DIC[
'tree'];
This class provides processing control methods.
redirection script todo: (a better solution should control the processing via a xml file) ...
◆ canModerate()
ilChatroomGUIHandler::canModerate |
( |
|
$room, |
|
|
|
$subRoom, |
|
|
|
$user_id |
|
) |
| |
|
protected |
◆ execute()
ilChatroomGUIHandler::execute |
( |
|
$method | ) |
|
Executes given $method if existing, otherwise executes executeDefault() method.
- Parameters
-
- Returns
- mixed
Definition at line 107 of file class.ilChatroomGUIHandler.php.
References executeDefault().
109 $this->ilLng->loadLanguageModule(
'chatroom');
111 if (method_exists($this, $method)) {
112 return $this->$method();
executeDefault($requestedMethod)
◆ executeDefault()
ilChatroomGUIHandler::executeDefault |
( |
|
$requestedMethod | ) |
|
|
abstract |
- Parameters
-
- Returns
- mixed
Referenced by execute().
◆ exitIfNoRoomExists()
ilChatroomGUIHandler::exitIfNoRoomExists |
( |
|
$room | ) |
|
|
protected |
Checks if a ilChatroom exists.
If not, it will send a json encoded response with success = false
- Parameters
-
Definition at line 161 of file class.ilChatroomGUIHandler.php.
References sendResponse().
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\delete(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomPrivateRoomGUI\leave(), ilChatroomKickGUI\main(), and ilChatroomTaskHandlerMock\mockedExitIfNoRoomExists().
167 'reason' =>
'unkown room',
sendResponse($response)
Sends a json encoded response and exits the php process.
◆ exitIfNoRoomPermission()
ilChatroomGUIHandler::exitIfNoRoomPermission |
( |
|
$room, |
|
|
|
$subRoom, |
|
|
|
$chat_user |
|
) |
| |
|
protected |
◆ getRoomByObjectId()
ilChatroomGUIHandler::getRoomByObjectId |
( |
|
$objectId | ) |
|
|
protected |
◆ hasPermission()
ilChatroomGUIHandler::hasPermission |
( |
|
$permission | ) |
|
◆ isMainRoom()
ilChatroomGUIHandler::isMainRoom |
( |
|
$subRoomId | ) |
|
|
protected |
◆ isSuccessful()
ilChatroomGUIHandler::isSuccessful |
( |
|
$response | ) |
|
◆ redirectIfNoPermission()
ilChatroomGUIHandler::redirectIfNoPermission |
( |
|
$permission | ) |
|
Checks for requested permissions and redirects if the permission check failed.
- Parameters
-
array | string | $permission | |
Definition at line 128 of file class.ilChatroomGUIHandler.php.
References ilChatroom\checkUserPermissions(), ilCtrl\redirectByClass(), ROOT_FOLDER_ID, and ilCtrl\setParameterByClass().
Referenced by ilChatroomBanGUI\active(), ilChatroomAdminViewGUI\clientsettings(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\enter(), ilChatroomInfoGUI\executeDefault(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomViewGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomViewGUI\joinWithCustomName(), ilChatroomAdminViewGUI\saveClientSettings(), ilChatroomBanGUI\show(), ilChatroomHistoryGUI\showMessages(), and ilChatroomViewGUI\showRoom().
This class provides processing control methods.
static checkUserPermissions($permissions, $ref_id, $send_info=true)
Checks user permissions by given array and ref_id.
redirectByClass($a_class, $a_cmd="", $a_anchor="", $a_asynch=false)
Redirect to other gui class using class name.
setParameterByClass($a_class, $a_parameter, $a_value)
Same as setParameterByClass, except that a class name is passed.
◆ sendResponse()
ilChatroomGUIHandler::sendResponse |
( |
|
$response | ) |
|
Sends a json encoded response and exits the php process.
- Parameters
-
Definition at line 177 of file class.ilChatroomGUIHandler.php.
References $response, and exit.
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\delete(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomPrivateRoomGUI\exitIfEnterRoomIsNotAllowed(), exitIfNoRoomExists(), exitIfNoRoomPermission(), ilChatroomPrivateRoomGUI\exitIfNoRoomSubscription(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomPrivateRoomGUI\leave(), ilChatroomPrivateRoomGUI\listUsers(), ilChatroomKickGUI\main(), and ilChatroomKickGUI\sub().
◆ $gui
ilChatroomGUIHandler::$gui |
|
protected |
◆ $ilCtrl
ilChatroomGUIHandler::$ilCtrl |
|
protected |
◆ $ilias
ilChatroomGUIHandler::$ilias |
|
protected |
◆ $ilLng
ilChatroomGUIHandler::$ilLng |
|
protected |
◆ $ilUser
ilChatroomGUIHandler::$ilUser |
|
protected |
◆ $mainTpl
ilChatroomGUIHandler::$mainTpl |
|
protected |
◆ $navigationHistory
ilChatroomGUIHandler::$navigationHistory |
|
protected |
◆ $obj_service
ilChatroomGUIHandler::$obj_service |
|
protected |
◆ $rbacsystem
ilChatroomGUIHandler::$rbacsystem |
|
protected |
◆ $tabs
ilChatroomGUIHandler::$tabs |
|
protected |
◆ $tree
ilChatroomGUIHandler::$tree |
|
protected |
◆ $upload
ilChatroomGUIHandler::$upload |
|
protected |
◆ $webDirectory
ilChatroomGUIHandler::$webDirectory |
|
protected |
The documentation for this class was generated from the following file: