| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
 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 | 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().
 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, 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(), 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 $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.
      
  | 
  private | 
Definition at line 32 of file class.ilChatroomConfigFileHandler.php.