|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Collaboration diagram for ilChatroomConfigFileHandler:Public Member Functions | |
| createClientConfigFile (array $settings) | |
| Creates a client config file and saves it to the chatroom data directory. More... | |
| createServerConfigFile (array $settings) | |
| Creates a server config file and saves it to the chatroom data directory. More... | |
Protected Member Functions | |
| getClientFileContent (array $settings) | |
| Get the client config file content as json encoded string. More... | |
| writeDataToFile (string $content, string $filename) | |
| Writes $content to file named by $filename. More... | |
| createDataDirIfNotExists () | |
| Creates a data directory for configuration files, if the directory does not already exists. More... | |
| getServerFileContent (array $settings) | |
| Get the server config file contetn as json encoded string. More... | |
Private Attributes | |
| const string | CHATROOM_DATA_DIR = '/chatroom/' |
| const string | CHATROOM_CLIENT_CONFIG_FILENAME = 'client.cfg' |
| const string | CHATROOM_SERVER_CONFIG_FILENAME = 'server.cfg' |
Definition at line 28 of file class.ilChatroomConfigFileHandler.php.
| ilChatroomConfigFileHandler::createClientConfigFile | ( | array | $settings | ) |
Creates a client config file and saves it to the chatroom data directory.
| Exception |
Definition at line 38 of file class.ilChatroomConfigFileHandler.php.
References getClientFileContent(), and writeDataToFile().
Here is the call graph for this function:
|
protected |
Creates a data directory for configuration files, if the directory does not already exists.
| RuntimeException | Throws Exception if data dir creation failed |
Definition at line 95 of file class.ilChatroomConfigFileHandler.php.
References $path, CHATROOM_DATA_DIR, ilFileUtils\getDataDir(), and ilFileUtils\makeDir().
Referenced by writeDataToFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomConfigFileHandler::createServerConfigFile | ( | array | $settings | ) |
Creates a server config file and saves it to the chatroom data directory.
| Exception |
Definition at line 110 of file class.ilChatroomConfigFileHandler.php.
References getServerFileContent(), and writeDataToFile().
Here is the call graph for this function:
|
protected |
Get the client config file content as json encoded string.
Definition at line 47 of file class.ilChatroomConfigFileHandler.php.
References $DIC, ILIAS\Repository\int(), readVariable(), ilDBConstants\TYPE_INNODB, and ilDBConstants\TYPE_MYSQL.
Referenced by createClientConfigFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get the server config file contetn as json encoded string.
Definition at line 119 of file class.ilChatroomConfigFileHandler.php.
Referenced by createServerConfigFile().
Here is the caller graph for this function:
|
protected |
Writes $content to file named by $filename.
| RuntimeException |
Definition at line 79 of file class.ilChatroomConfigFileHandler.php.
References $filename, $path, and createDataDirIfNotExists().
Referenced by createClientConfigFile(), and createServerConfigFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 31 of file class.ilChatroomConfigFileHandler.php.
|
private |
Definition at line 30 of file class.ilChatroomConfigFileHandler.php.
Referenced by createDataDirIfNotExists().
|
private |
Definition at line 32 of file class.ilChatroomConfigFileHandler.php.