ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Class ilChatroomViewTask. More...
Public Member Functions | |
__construct (ilChatroomObjectGUI $gui) | |
Constructor Sets $this->gui using given $gui. More... | |
forcePublicRoom () | |
__construct (ilChatroomObjectGUI $gui) | |
renderFileUploadForm (ilTemplate $roomTpl) | |
Prepares Fileupload form and displays it. More... | |
![]() | |
__construct (ilChatroomObjectGUI $gui) | |
executeDefault ($requestedMethod) | |
Protected Member Functions | |
writeClientSettingsToFile (array $settings) | |
Writes client settings to client.properties file. More... | |
getClientFileContent (array $settings) | |
Formats content for client settings file. More... | |
writeDataToFile (array $settings) | |
Writes server settings to server.properties file. More... | |
getFileContent (array $settings) | |
Builds and formats content tot write in server.properties file. More... | |
checkDirectory () | |
Checks if external chatroom directory exists or can be created. More... | |
checkPrivHosts ($ipnumbers) | |
Checks if a valid IP number or a comma-separated string of valid IP numbers is given. More... | |
Private Member Functions | |
defaultActions () | |
cancelJoin ($message) | |
Calls ilUtil::sendFailure method using given $message as parameter. More... | |
Private Attributes | |
$gui | |
$commonSettings | |
ilChatroomViewTask::__construct | ( | ilChatroomObjectGUI | $gui | ) |
Constructor Sets $this->gui using given $gui.
ilChatroomObjectGUI | $gui |
Definition at line 29 of file class.ilChatroomViewTask.php.
References $gui, $ilCtrl, $lng, checkPrivHosts(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilUtil\sendSuccess(), writeClientSettingsToFile(), and writeDataToFile().
ilChatroomViewTask::__construct | ( | ilChatroomObjectGUI | $gui | ) |
ilChatroomObjectGUI | $gui |
Definition at line 23 of file class.ilChatroomViewTask.php.
References $gui.
|
private |
Calls ilUtil::sendFailure method using given $message as parameter.
string | $message |
Definition at line 32 of file class.ilChatroomViewTask.php.
References $_GET, $_REQUEST, $_SESSION, $failure, $ilCtrl, $ilUser, $lng, $query, $tpl, ilChatroomSmilies\_getSmilies(), ilChatroom\addHistoryEntry(), ilChatroom\byObjectId(), ilChatroom\checkUserPermissions(), ilChatroomTaskHandler\executeDefault(), exit, ilChatroom\getActivePrivateRooms(), ilChatroomUser\getChatNameSuggestions(), ilChatroom\getConnectedUsers(), ilPanelGUI\getInstance(), ilChatroom\getLastMessages(), ilChatroom\getRoomId(), ilChatroom\getSetting(), ilChatroomUser\getUserId(), ilChatroomUser\getUsername(), ilPanelGUI\HEADING_STYLE_BLOCK, ilChatroom\isAllowedToEnterPrivateRoom(), ilChatroom\isSubscribed(), ilChatroom\isUserBanned(), ilPanelGUI\PANEL_STYLE_SECONDARY, ilTemplate\parseCurrentBlock(), renderFileUploadForm(), ilUtil\sendFailure(), ilTemplate\setCurrentBlock(), ilChatroomUser\setUsername(), HTML_Template_IT\setVariable(), and ilChatroom\subscribeUserToPrivateRoom().
|
protected |
Checks if external chatroom directory exists or can be created.
Exception |
Definition at line 244 of file class.ilChatroomViewTask.php.
References ilUtil\getDataDir(), and ilUtil\makeDir().
Referenced by writeClientSettingsToFile(), and writeDataToFile().
|
protected |
Checks if a valid IP number or a comma-separated string of valid IP numbers is given.
string | $ipnumbers |
Definition at line 266 of file class.ilChatroomViewTask.php.
References $data, $ilCtrl, $lng, $serverSettings, $tpl, ilUtil\_getHttpPath(), ilChatroomServerConnector\checkServerConnection(), ilChatroom\checkUserPermissions(), defaultActions(), ilChatroomTaskHandler\executeDefault(), and ilUtil\sendInfo().
Referenced by __construct().
|
private |
Definition at line 441 of file class.ilChatroomViewTask.php.
References forcePublicRoom().
Referenced by checkPrivHosts().
ilChatroomViewTask::forcePublicRoom | ( | ) |
Definition at line 453 of file class.ilChatroomViewTask.php.
References $lng, $ref_id, ilObjChatroom\_getPublicRefId(), ilObject\_hasUntrashedReference(), ilObject\_lookupObjId(), ilObjectFactory\getInstanceByRefId(), and ilUtil\sendSuccess().
Referenced by defaultActions().
|
protected |
Formats content for client settings file.
array | $settings |
Definition at line 182 of file class.ilChatroomViewTask.php.
Referenced by writeClientSettingsToFile().
|
protected |
Builds and formats content tot write in server.properties file.
array | $settings |
Definition at line 221 of file class.ilChatroomViewTask.php.
References $https.
Referenced by writeDataToFile().
ilChatroomViewTask::renderFileUploadForm | ( | ilTemplate | $roomTpl | ) |
Prepares Fileupload form and displays it.
ilTemplate | $roomTpl |
Definition at line 659 of file class.ilChatroomViewTask.php.
References $ilCtrl, $lng, ilUtil\sendFailure(), and HTML_Template_IT\setVariable().
Referenced by cancelJoin().
|
protected |
Writes client settings to client.properties file.
array | $settings |
Exception |
Definition at line 162 of file class.ilChatroomViewTask.php.
References checkDirectory(), and getClientFileContent().
Referenced by __construct().
|
protected |
Writes server settings to server.properties file.
array | $settings |
Definition at line 201 of file class.ilChatroomViewTask.php.
References checkDirectory(), and getFileContent().
Referenced by __construct().
|
private |
Definition at line 22 of file class.ilChatroomViewTask.php.
|
private |
Definition at line 17 of file class.ilChatroomViewTask.php.
Referenced by __construct().