ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Class ilChatroomAdminViewTask. More...
Public Member Functions | |
__construct (ilChatroomObjectGUI $gui) | |
Constructor Sets $this->gui using given $gui. More... | |
forcePublicRoom () | |
![]() | |
__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 () | |
Private Attributes | |
$gui | |
$commonSettings | |
Class ilChatroomAdminViewTask.
Definition at line 12 of file class.ilChatroomAdminViewTask.php.
ilChatroomAdminViewTask::__construct | ( | ilChatroomObjectGUI | $gui | ) |
Constructor Sets $this->gui using given $gui.
ilChatroomObjectGUI | $gui |
Definition at line 29 of file class.ilChatroomAdminViewTask.php.
References $gui, $ilCtrl, $lng, checkPrivHosts(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilUtil\sendSuccess(), writeClientSettingsToFile(), and writeDataToFile().
|
protected |
Checks if external chatroom directory exists or can be created.
Exception |
Definition at line 244 of file class.ilChatroomAdminViewTask.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.ilChatroomAdminViewTask.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.ilChatroomAdminViewTask.php.
References forcePublicRoom().
Referenced by checkPrivHosts().
ilChatroomAdminViewTask::forcePublicRoom | ( | ) |
Definition at line 453 of file class.ilChatroomAdminViewTask.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.ilChatroomAdminViewTask.php.
Referenced by writeClientSettingsToFile().
|
protected |
Builds and formats content tot write in server.properties file.
array | $settings |
Definition at line 221 of file class.ilChatroomAdminViewTask.php.
References $https.
Referenced by writeDataToFile().
|
protected |
Writes client settings to client.properties file.
array | $settings |
Exception |
Definition at line 162 of file class.ilChatroomAdminViewTask.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.ilChatroomAdminViewTask.php.
References checkDirectory(), and getFileContent().
Referenced by __construct().
|
private |
Definition at line 22 of file class.ilChatroomAdminViewTask.php.
|
private |
Definition at line 17 of file class.ilChatroomAdminViewTask.php.
Referenced by __construct().