Class ilChatroomGUIHandler.
More...
◆ __construct()
- Parameters
-
Definition at line 70 of file class.ilChatroomGUIHandler.php.
References $DIC, and $gui.
75 $this->ilUser = $DIC->user();
76 $this->
ilCtrl = $DIC->ctrl();
77 $this->ilLng = $DIC->language();
78 $this->rbacsystem = $DIC->rbac()->system();
79 $this->mainTpl = $DIC->ui()->mainTemplate();
80 $this->upload = $DIC->upload();
81 $this->webDirectory = $DIC->filesystem()->web();
82 $this->
ilias = $DIC[
'ilias'];
83 $this->tabs = $DIC->tabs();
84 $this->navigationHistory = $DIC[
'ilNavigationHistory'];
85 $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 178 of file class.ilChatroomGUIHandler.php.
References executeDefault().
180 $this->ilLng->loadLanguageModule(
'chatroom');
182 if (method_exists($this, $method)) {
183 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 101 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().
107 '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 199 of file class.ilChatroomGUIHandler.php.
References ilChatroom\checkUserPermissions(), ilCtrl\redirectByClass(), and ilCtrl\setParameterByClass().
Referenced by ilChatroomBanGUI\active(), ilChatroomAdminViewGUI\clientsettings(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\enter(), ilChatroomInfoGUI\executeDefault(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomViewGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomAdminViewGUI\saveClientSettings(), ilChatroomAdminViewGUI\saveSettings(), ilChatroomAdminViewGUI\serversettings(), 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 117 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 |
◆ $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: