ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
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 | CHATROOM_DATA_DIR = '/chatroom/' |
const | CHATROOM_CLIENT_CONFIG_FILENAME = 'client.cfg' |
const | 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().
|
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, ilFileUtils\getDataDir(), and ilFileUtils\makeDir().
Referenced by writeDataToFile().
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().
|
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(), ilDBConstants\TYPE_INNODB, and ilDBConstants\TYPE_MYSQL.
Referenced by createClientConfigFile().
|
protected |
Get the server config file contetn as json encoded string.
Definition at line 119 of file class.ilChatroomConfigFileHandler.php.
Referenced by createServerConfigFile().
|
protected |
Writes $content to file named by $filename.
RuntimeException |
Definition at line 79 of file class.ilChatroomConfigFileHandler.php.
References $path, and createDataDirIfNotExists().
Referenced by createClientConfigFile(), and createServerConfigFile().
|
private |
Definition at line 31 of file class.ilChatroomConfigFileHandler.php.
|
private |
Definition at line 30 of file class.ilChatroomConfigFileHandler.php.
|
private |
Definition at line 32 of file class.ilChatroomConfigFileHandler.php.