|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilChatroomTaskHandlerMock. More...
Inheritance diagram for ilChatroomTaskHandlerMock:
Collaboration diagram for ilChatroomTaskHandlerMock:Public Member Functions | |
| executeDefault ($requestedMethod) | |
| testFunc () | |
| mockedCanModerate ($room, $subRoomId, $userId) | |
| mockedExitIfNoRoomExists ($room) | |
| mockedExitIfNoRoomPermission ($room, $subRoomId, $user) | |
| sendResponse ($response) | |
| Override parent sendResponse for test purposes. More... | |
Public Member Functions inherited from ilChatroomGUIHandler | |
| __construct (ilChatroomObjectGUI $gui) | |
| sendResponse ($response) | |
| Sends a json encoded response and exits the php process. More... | |
| hasPermission ($permission) | |
| Checks for access with ilRbacSystem. More... | |
| execute ($method) | |
| Executes given $method if existing, otherwise executes executeDefault() method. More... | |
| executeDefault ($requestedMethod) | |
| redirectIfNoPermission ($permission) | |
| Checks for requested permissions and redirects if the permission check failed. More... | |
| isSuccessful ($response) | |
| Checks for success param in an json decoded response. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ilChatroomGUIHandler | |
| getRoomByObjectId ($objectId) | |
| exitIfNoRoomExists ($room) | |
| Checks if a ilChatroom exists. More... | |
| exitIfNoRoomPermission ($room, $subRoom, $chat_user) | |
| Check if user can moderate a chatroom. More... | |
| canModerate ($room, $subRoom, $user_id) | |
| Checks if the user has permission to moderate a ilChatroom. More... | |
| isMainRoom ($subRoomId) | |
Protected Attributes inherited from ilChatroomGUIHandler | |
| $gui | |
| $ilUser | |
| $ilCtrl | |
| $ilLng | |
| $rbacsystem | |
Class ilChatroomTaskHandlerMock.
Definition at line 9 of file class.ilChatroomTaskHandlerMock.php.
| ilChatroomTaskHandlerMock::executeDefault | ( | $requestedMethod | ) |
| string | $requestedMethod |
Reimplemented from ilChatroomGUIHandler.
Definition at line 12 of file class.ilChatroomTaskHandlerMock.php.
| ilChatroomTaskHandlerMock::mockedCanModerate | ( | $room, | |
| $subRoomId, | |||
| $userId | |||
| ) |
| ilChatroom | PHPUnit_Framework_MockObject_MockObject | $room | |
| int | $subRoomId | |
| int | $userId |
Definition at line 28 of file class.ilChatroomTaskHandlerMock.php.
References ilChatroomGUIHandler\canModerate().
Here is the call graph for this function:| ilChatroomTaskHandlerMock::mockedExitIfNoRoomExists | ( | $room | ) |
| ilChatroom | $room |
Definition at line 36 of file class.ilChatroomTaskHandlerMock.php.
References ilChatroomGUIHandler\exitIfNoRoomExists().
Here is the call graph for this function:| ilChatroomTaskHandlerMock::mockedExitIfNoRoomPermission | ( | $room, | |
| $subRoomId, | |||
| $user | |||
| ) |
| ilChatroom | $room | |
| int | $subRoomId | |
| ilChatroomUser | $user |
Definition at line 46 of file class.ilChatroomTaskHandlerMock.php.
References ilChatroomGUIHandler\exitIfNoRoomPermission().
Here is the call graph for this function:| ilChatroomTaskHandlerMock::sendResponse | ( | $response | ) |
Override parent sendResponse for test purposes.
It should echo json encoded data and exit the process.
| array | $response |
| Exception |
Reimplemented from ilChatroomGUIHandler.
Definition at line 56 of file class.ilChatroomTaskHandlerMock.php.
| ilChatroomTaskHandlerMock::testFunc | ( | ) |
Definition at line 17 of file class.ilChatroomTaskHandlerMock.php.