ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilChatroomAdminViewGUI. More...
Public Member Functions | ||||
__construct (ilChatroomObjectGUI $gui) | ||||
Constructor. More... | ||||
executeDefault ($method) | ||||
{
| ||||
saveSettings () | ||||
Saves settings fetched from $_POST. More... | ||||
serversettings (ilPropertyFormGUI $form=null) | ||||
Prepares view form and displays it. More... | ||||
forcePublicRoom () | ||||
createPublicRoom () | ||||
Creates a public chatroom. More... | ||||
saveClientSettings () | ||||
Saves client settings fetched from $_POST. More... | ||||
clientsettings (ilPropertyFormGUI $form=null) | ||||
![]() | ||||
__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... | ||||
Data Fields | |
const | CHATROOM_README_PATH = '/Modules/Chatroom/README.md' |
Protected Member Functions | |
checkServerConnection (array $serverSettings) | |
Checks for server connection. More... | |
createSettingTemplate (ilPropertyFormGUI $form) | |
getReadmePath () | |
Get the path to the README.txt file. More... | |
![]() | |
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 | |
$commonSettings | |
$ilTpl | |
![]() | |
$gui | |
$ilUser | |
$ilCtrl | |
$ilLng | |
$webDirectory | |
$upload | |
$rbacsystem | |
$mainTpl | |
$ilias | |
$navigationHistory | |
$tree | |
$tabs | |
Private Member Functions | |
defaultActions () | |
Class ilChatroomAdminViewGUI.
Definition at line 16 of file class.ilChatroomAdminViewGUI.php.
ilChatroomAdminViewGUI::__construct | ( | ilChatroomObjectGUI | $gui | ) |
Constructor.
ilChatroomObjectGUI | $gui |
Reimplemented from ilChatroomGUIHandler.
Definition at line 34 of file class.ilChatroomAdminViewGUI.php.
References $DIC, and ilChatroomGUIHandler\$gui.
|
protected |
Checks for server connection.
If no connection if possible, show info in gui
array | $serverSettings |
Definition at line 187 of file class.ilChatroomAdminViewGUI.php.
References ilChatroomServerConnector\checkServerConnection(), and ilUtil\sendInfo().
Referenced by clientsettings(), and serversettings().
ilChatroomAdminViewGUI::clientsettings | ( | ilPropertyFormGUI | $form = null | ) |
ilPropertyFormGUI | $form |
Definition at line 276 of file class.ilChatroomAdminViewGUI.php.
References $factory, $form, checkServerConnection(), ilChatroom\checkUserPermissions(), createSettingTemplate(), defaultActions(), ilCtrl\getFormAction(), and ilChatroomGUIHandler\redirectIfNoPermission().
Referenced by saveClientSettings().
ilChatroomAdminViewGUI::createPublicRoom | ( | ) |
Creates a public chatroom.
Definition at line 176 of file class.ilChatroomAdminViewGUI.php.
Referenced by forcePublicRoom().
|
protected |
ilPropertyFormGUI | $form |
Definition at line 204 of file class.ilChatroomAdminViewGUI.php.
References $form.
Referenced by clientsettings(), and serversettings().
|
private |
Definition at line 133 of file class.ilChatroomAdminViewGUI.php.
References forcePublicRoom().
Referenced by clientsettings(), and serversettings().
ilChatroomAdminViewGUI::executeDefault | ( | $method | ) |
{
string | $requestedMethod |
Reimplemented from ilChatroomGUIHandler.
Definition at line 46 of file class.ilChatroomAdminViewGUI.php.
References ilCtrl\redirect().
ilChatroomAdminViewGUI::forcePublicRoom | ( | ) |
Definition at line 144 of file class.ilChatroomAdminViewGUI.php.
References ilObjChatroom\_getPublicRefId(), ilObject\_hasUntrashedReference(), ilObject\_lookupObjId(), createPublicRoom(), and ilObjectFactory\getInstanceByRefId().
Referenced by defaultActions().
|
protected |
Get the path to the README.txt file.
Definition at line 218 of file class.ilChatroomAdminViewGUI.php.
References ilUtil\_getHttpPath(), and CHATROOM_README_PATH.
ilChatroomAdminViewGUI::saveClientSettings | ( | ) |
Saves client settings fetched from $_POST.
Definition at line 226 of file class.ilChatroomAdminViewGUI.php.
References $factory, $form, clientsettings(), ilCtrl\redirect(), and ilChatroomGUIHandler\redirectIfNoPermission().
ilChatroomAdminViewGUI::saveSettings | ( | ) |
Saves settings fetched from $_POST.
Definition at line 54 of file class.ilChatroomAdminViewGUI.php.
References $factory, $form, ilCtrl\redirect(), ilChatroomGUIHandler\redirectIfNoPermission(), and serversettings().
ilChatroomAdminViewGUI::serversettings | ( | ilPropertyFormGUI | $form = null | ) |
Prepares view form and displays it.
ilPropertyFormGUI | $form |
Definition at line 102 of file class.ilChatroomAdminViewGUI.php.
References $factory, $form, checkServerConnection(), ilChatroom\checkUserPermissions(), createSettingTemplate(), defaultActions(), ilCtrl\getFormAction(), and ilChatroomGUIHandler\redirectIfNoPermission().
Referenced by saveSettings().
|
protected |
Definition at line 23 of file class.ilChatroomAdminViewGUI.php.
|
protected |
Definition at line 28 of file class.ilChatroomAdminViewGUI.php.
const ilChatroomAdminViewGUI::CHATROOM_README_PATH = '/Modules/Chatroom/README.md' |
Definition at line 18 of file class.ilChatroomAdminViewGUI.php.
Referenced by getReadmePath().