Elgg
Version 3.0
|
Go to the source code of this file.
Namespaces | |
Elgg\Core | |
Updates the advanced settings for the primary site object. | |
Functions | |
execute_delayed_write_query ($query, $callback=null, array $params=[]) | |
Queue a query for running during shutdown that writes to the database. More... | |
execute_delayed_read_query ($query, $callback=null, array $params=[]) | |
Queue a query for running during shutdown that reads from the database. More... | |
run_sql_script ($scriptlocation) | |
Runs a full database script from disk. More... | |
elgg_enable_query_cache () | |
Enable the MySQL query cache. More... | |
elgg_disable_query_cache () | |
Disable the MySQL query cache. More... | |
_elgg_db_test ($hook, $type, $value) | |
Runs unit tests for the database. More... | |
_elgg_db_register_seeds (\Elgg\Hook $hook) | |
Register database seeds. More... | |
_elgg_db_init () | |
Registers shutdown functions for database profiling and delayed queries. More... | |
Variables | |
return | function (\Elgg\EventsService $events,\Elgg\HooksRegistrationService $hooks) |
_elgg_db_init | ( | ) |
Registers shutdown functions for database profiling and delayed queries.
Definition at line 128 of file database.php.
_elgg_db_register_seeds | ( | \Elgg\Hook | $hook | ) |
Register database seeds.
seeds database
\Elgg\Hook | $hook | Hook |
Definition at line 111 of file database.php.
_elgg_db_test | ( | $hook, | |
$type, | |||
$value | |||
) |
Runs unit tests for the database.
string | $hook | 'unit_test' |
string | $type | 'system' |
array | $value | Array of tests |
Definition at line 98 of file database.php.
elgg_disable_query_cache | ( | ) |
Disable the MySQL query cache.
Definition at line 83 of file database.php.
elgg_enable_query_cache | ( | ) |
execute_delayed_read_query | ( | $query, | |
$callback = null , |
|||
array | $params = [] |
||
) |
Queue a query for running during shutdown that reads from the database.
string | $query | The query to execute |
callable | $callback | The optional callback for processing. The callback will receive a object |
array | $params | Query params. E.g. [1, 'steve'] or [':id' => 1, ':name' => 'steve'] |
Definition at line 35 of file database.php.
execute_delayed_write_query | ( | $query, | |
$callback = null , |
|||
array | $params = [] |
||
) |
Queue a query for running during shutdown that writes to the database.
string | $query | The query to execute |
callable | $callback | The optional callback for processing. The callback will receive a object |
array | $params | Query params. E.g. [1, 'steve'] or [':id' => 1, ':name' => 'steve'] |
Definition at line 21 of file database.php.
run_sql_script | ( | $scriptlocation | ) |
Runs a full database script from disk.
The file specified should be a standard SQL file as created by mysqldump or similar. Statements must be terminated with ; and a newline character (
or
) with only one statement per line.
The special string 'prefix_' is replaced with the database prefix as defined in ->dbprefix.
string | $scriptlocation | The full path to the script |
DatabaseException |
Definition at line 59 of file database.php.
return function(\Elgg\EventsService $events,\Elgg\HooksRegistrationService $hooks) |
Definition at line 136 of file database.php.