ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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... | |
Data Fields | |
const | CHATROOM_DATA_DIR = '/chatroom/' |
const | CHATROOM_CLIENT_CONFIG_FILENAME = 'client.cfg' |
const | CHATROOM_SERVER_CONFIG_FILENAME = 'server.cfg' |
Protected Member Functions | |
getClientFileContent (array $settings) | |
Get the client config file content as json encoded string. More... | |
writeDataToFile ($content, $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... | |
Definition at line 11 of file class.ilChatroomConfigFileHandler.php.
ilChatroomConfigFileHandler::createClientConfigFile | ( | array | $settings | ) |
Creates a client config file and saves it to the chatroom data directory.
array | $settings |
Exception |
Definition at line 22 of file class.ilChatroomConfigFileHandler.php.
References getClientFileContent(), and writeDataToFile().
|
protected |
Creates a data directory for configuration files, if the directory does not already exists.
Exception | Throws Exception if data dir creation failed |
Definition at line 86 of file class.ilChatroomConfigFileHandler.php.
References $path, ilUtil\getDataDir(), and ilUtil\makeDir().
Referenced by writeDataToFile().
ilChatroomConfigFileHandler::createServerConfigFile | ( | array | $settings | ) |
Creates a server config file and saves it to the chatroom data directory.
array | $settings |
Exception |
Definition at line 104 of file class.ilChatroomConfigFileHandler.php.
References getServerFileContent(), and writeDataToFile().
|
protected |
Get the client config file content as json encoded string.
array | $settings |
Definition at line 33 of file class.ilChatroomConfigFileHandler.php.
References $a_type, $DIC, $type, array, ilDBConstants\TYPE_INNODB, ilDBConstants\TYPE_MYSQL, ilDBConstants\TYPE_PDO_MYSQL_INNODB, and ilDBConstants\TYPE_PDO_MYSQL_MYISAM.
Referenced by createClientConfigFile().
|
protected |
Get the server config file contetn as json encoded string.
array | $settings |
Definition at line 115 of file class.ilChatroomConfigFileHandler.php.
Referenced by createServerConfigFile().
|
protected |
Writes $content to file named by $filename.
string | $content | |
string | $filename |
Exception |
Definition at line 69 of file class.ilChatroomConfigFileHandler.php.
References $filename, $path, and createDataDirIfNotExists().
Referenced by createClientConfigFile(), and createServerConfigFile().
const ilChatroomConfigFileHandler::CHATROOM_CLIENT_CONFIG_FILENAME = 'client.cfg' |
Definition at line 14 of file class.ilChatroomConfigFileHandler.php.
const ilChatroomConfigFileHandler::CHATROOM_DATA_DIR = '/chatroom/' |
Definition at line 13 of file class.ilChatroomConfigFileHandler.php.
const ilChatroomConfigFileHandler::CHATROOM_SERVER_CONFIG_FILENAME = 'server.cfg' |
Definition at line 15 of file class.ilChatroomConfigFileHandler.php.