Definition at line 12 of file Config.php.
Elgg_Database_Config::__construct |
( |
stdClass |
$config | ) |
|
Constructor.
- Parameters
-
stdClass | $config | Elgg's $CONFIG object |
Definition at line 26 of file Config.php.
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 84 of file Config.php.
Elgg_Database_Config::getGeneralConnectionConfig |
( |
| ) |
|
|
protected |
Get the read/write database connection information.
- Returns
- array
Definition at line 104 of file Config.php.
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 119 of file Config.php.
Elgg_Database_Config::getTablePrefix |
( |
| ) |
|
Get the database table prefix.
- Returns
- string
Definition at line 35 of file Config.php.
Elgg_Database_Config::isDatabaseSplit |
( |
| ) |
|
Are the read and write connections separate?
- Returns
- bool
Definition at line 57 of file Config.php.
Elgg_Database_Config::isQueryCacheEnabled |
( |
| ) |
|
Is the query cache enabled?
- Returns
- bool
Definition at line 44 of file Config.php.
Elgg_Database_Config::$config |
|
protected |
const Elgg_Database_Config::READ = 'read' |
const Elgg_Database_Config::READ_WRITE = 'readwrite' |
const Elgg_Database_Config::WRITE = 'write' |
The documentation for this class was generated from the following file: