Definition at line 13 of file Config.php.
 
◆ __construct()
      
        
          | Elgg\Database\Config::__construct | ( | \stdClass | $config | ) |  | 
      
 
Constructor. 
- Parameters
- 
  
    | \stdClass | $config | Elgg's $CONFIG object |  
 
Definition at line 27 of file Config.php.
 
 
◆ getConnectionConfig()
      
        
          | Elgg\Database\Config::getConnectionConfig | ( |  | $type = self::READ_WRITE | ) |  | 
      
 
Get the connection configuration. 
The parameters are in an array like this: array( 'host' => 'xxx', 'user' => 'xxx', 'password' => 'xxx', 'database' => 'xxx', )
- Parameters
- 
  
    | int | $type | The connection type: READ, WRITE, READ_WRITE |  
 
- Returns
- array 
Definition at line 85 of file Config.php.
 
 
◆ getGeneralConnectionConfig()
  
  | 
        
          | Elgg\Database\Config::getGeneralConnectionConfig | ( |  | ) |  |  | protected | 
 
Get the read/write database connection information. 
- Returns
- array 
Definition at line 105 of file Config.php.
 
 
◆ getParticularConnectionConfig()
  
  | 
        
          | Elgg\Database\Config::getParticularConnectionConfig | ( |  | $type | ) |  |  | protected | 
 
Get connection information for reading or writing. 
- Parameters
- 
  
    | string | $type | Connection type: 'write' or 'read' |  
 
- Returns
- array 
Definition at line 120 of file Config.php.
 
 
◆ getTablePrefix()
      
        
          | Elgg\Database\Config::getTablePrefix | ( |  | ) |  | 
      
 
Get the database table prefix. 
- Returns
- string 
Definition at line 36 of file Config.php.
 
 
◆ isDatabaseSplit()
      
        
          | Elgg\Database\Config::isDatabaseSplit | ( |  | ) |  | 
      
 
Are the read and write connections separate? 
- Returns
- bool 
Definition at line 58 of file Config.php.
 
 
◆ isQueryCacheEnabled()
      
        
          | Elgg\Database\Config::isQueryCacheEnabled | ( |  | ) |  | 
      
 
Is the query cache enabled? 
- Returns
- bool 
Definition at line 45 of file Config.php.
 
 
◆ $config
  
  | 
        
          | Elgg\Database\Config::$config |  | protected | 
 
 
◆ READ
      
        
          | const Elgg\Database\Config::READ = 'read' | 
      
 
 
◆ READ_WRITE
      
        
          | const Elgg\Database\Config::READ_WRITE = 'readwrite' | 
      
 
 
◆ WRITE
      
        
          | const Elgg\Database\Config::WRITE = 'write' | 
      
 
 
The documentation for this class was generated from the following file: