ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 | |
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 186 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 275 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 175 of file class.ilChatroomAdminViewGUI.php.
References ilUtil\sendSuccess().
Referenced by forcePublicRoom().
|
protected |
ilPropertyFormGUI | $form |
Definition at line 203 of file class.ilChatroomAdminViewGUI.php.
References $form, and sprintf.
Referenced by clientsettings(), and serversettings().
|
private |
Definition at line 132 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 143 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 217 of file class.ilChatroomAdminViewGUI.php.
References ilUtil\_getHttpPath(), and CHATROOM_README_PATH.
ilChatroomAdminViewGUI::saveClientSettings | ( | ) |
Saves client settings fetched from $_POST.
Definition at line 225 of file class.ilChatroomAdminViewGUI.php.
References $factory, $form, clientsettings(), ilCtrl\redirect(), ilChatroomGUIHandler\redirectIfNoPermission(), and ilUtil\sendSuccess().
ilChatroomAdminViewGUI::saveSettings | ( | ) |
Saves settings fetched from $_POST.
Definition at line 54 of file class.ilChatroomAdminViewGUI.php.
References $factory, $form, ilCtrl\redirect(), ilChatroomGUIHandler\redirectIfNoPermission(), 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 $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().