Definition at line 13 of file Config.php.
Elgg\Database\Config::__construct |
( |
\stdClass |
$config | ) |
|
Constructor.
- Parameters
-
\stdClass | $config | Elgg's $CONFIG object |
Definition at line 27 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 85 of file Config.php.
Elgg\Database\Config::getGeneralConnectionConfig |
( |
| ) |
|
|
protected |
Get the read/write database connection information.
- Returns
- array
Definition at line 105 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 120 of file Config.php.
Elgg\Database\Config::getTablePrefix |
( |
| ) |
|
Get the database table prefix.
- Returns
- string
Definition at line 36 of file Config.php.
Elgg\Database\Config::isDatabaseSplit |
( |
| ) |
|
Are the read and write connections separate?
- Returns
- bool
Definition at line 58 of file Config.php.
Elgg\Database\Config::isQueryCacheEnabled |
( |
| ) |
|
Is the query cache enabled?
- Returns
- bool
Definition at line 45 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: