ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilChatroomAdminViewGUI. More...
Public Member Functions | |
__construct (ilChatroomObjectGUI $gui) | |
Constructor. More... | |
executeDefault ($method) | |
{} More... | |
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) | |
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... | |
Data Fields | |
const | CHATROOM_README_PATH = '/Modules/Chatroom/chat/README.txt' |
Protected Member Functions | |
checkServerConnection (array $serverSettings) | |
Checks for server connection. More... | |
createSettingTemplate (ilPropertyFormGUI $form) | |
getReadmePath () | |
Get the path to the README.txt file. More... | |
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 | |
$commonSettings | |
$ilTpl | |
Protected Attributes inherited from ilChatroomGUIHandler | |
$gui | |
$ilUser | |
$ilCtrl | |
$ilLng | |
$rbacsystem | |
Private Member Functions | |
defaultActions () | |
Class ilChatroomAdminViewGUI.
Definition at line 16 of file class.ilChatroomAdminViewGUI.php.
ilChatroomAdminViewGUI::__construct | ( | ilChatroomObjectGUI | $gui | ) |
Constructor.
ilChatroomObjectGUI | $gui |
Definition at line 35 of file class.ilChatroomAdminViewGUI.php.
References $tpl.
|
protected |
Checks for server connection.
If no connection if possible, show info in gui
array | $serverSettings |
Definition at line 190 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 279 of file class.ilChatroomAdminViewGUI.php.
References checkServerConnection(), ilChatroom\checkUserPermissions(), createSettingTemplate(), defaultActions(), and ilCtrl\getFormAction().
Referenced by saveClientSettings().
ilChatroomAdminViewGUI::createPublicRoom | ( | ) |
Creates a public chatroom.
Definition at line 179 of file class.ilChatroomAdminViewGUI.php.
References ilUtil\sendSuccess().
Referenced by forcePublicRoom().
|
protected |
ilPropertyFormGUI | $form |
Definition at line 208 of file class.ilChatroomAdminViewGUI.php.
References ilPropertyFormGUI\getHTML(), and getReadmePath().
Referenced by clientsettings(), and serversettings().
|
private |
Definition at line 131 of file class.ilChatroomAdminViewGUI.php.
References forcePublicRoom().
Referenced by clientsettings(), and serversettings().
ilChatroomAdminViewGUI::executeDefault | ( | $method | ) |
{}
Definition at line 47 of file class.ilChatroomAdminViewGUI.php.
References ilCtrl\redirect().
ilChatroomAdminViewGUI::forcePublicRoom | ( | ) |
Definition at line 143 of file class.ilChatroomAdminViewGUI.php.
References $ref_id, 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 222 of file class.ilChatroomAdminViewGUI.php.
References ilUtil\_getHttpPath().
Referenced by createSettingTemplate().
ilChatroomAdminViewGUI::saveClientSettings | ( | ) |
Saves client settings fetched from $_POST.
Definition at line 230 of file class.ilChatroomAdminViewGUI.php.
References array, clientsettings(), ilCtrl\redirect(), and ilUtil\sendSuccess().
ilChatroomAdminViewGUI::saveSettings | ( | ) |
Saves settings fetched from $_POST.
Definition at line 55 of file class.ilChatroomAdminViewGUI.php.
References array, ilCtrl\redirect(), ilUtil\sendSuccess(), and serversettings().
ilChatroomAdminViewGUI::serversettings | ( | ilPropertyFormGUI | $form = null | ) |
Prepares view form and displays it.
ilPropertyFormGUI | $form |
Definition at line 101 of file class.ilChatroomAdminViewGUI.php.
References checkServerConnection(), ilChatroom\checkUserPermissions(), createSettingTemplate(), defaultActions(), and ilCtrl\getFormAction().
Referenced by saveSettings().
|
protected |
Definition at line 24 of file class.ilChatroomAdminViewGUI.php.
|
protected |
Definition at line 29 of file class.ilChatroomAdminViewGUI.php.
const ilChatroomAdminViewGUI::CHATROOM_README_PATH = '/Modules/Chatroom/chat/README.txt' |
Definition at line 19 of file class.ilChatroomAdminViewGUI.php.