232 elgg_log(
"DB Queries for this page: $db_calls",
'INFO');
285 register_shutdown_function(
'_elgg_db_run_delayed_queries');
286 register_shutdown_function(
'_elgg_db_log_profiling_data');
291 $events->registerHandler(
'init',
'system',
'_elgg_db_init');
insert_data($query, array $params=[])
Insert a row into the database.
_elgg_db_test($hook, $type, $value)
Runs unit tests for the database.
_elgg_db_log_profiling_data()
Log db profiling information at NOTICE debug level upon shutdown.
_elgg_db_get_query_counter()
Get a new query counter that will begin counting from 0.
elgg_disable_query_cache()
Disable the MySQL query cache.
delete_data($query, array $params=[])
Remove a row from the database.
_elgg_db_run_delayed_queries()
Execute any delayed queries upon shutdown.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
sanitize_string($string)
Sanitizes a string for use in a query.
get_data_row($query, $callback=null, array $params=[])
Retrieve a single row from the database.
update_data($query, array $params=[], $get_num_rows=false)
Update a row in the database.
elgg_enable_query_cache()
Enable the MySQL query cache.
execute_delayed_write_query($query, $callback=null, array $params=[])
Queue a query for running during shutdown that writes to the database.
sanitise_string($string)
Alias of sanitize_string.
_elgg_db_init()
Registers shutdown functions for database profiling and delayed queries.
get_data($query, $callback=null, array $params=[])
Retrieve rows from the database.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
elgg_log($message, $level= 'NOTICE')
Display or log a message.
run_sql_script($scriptlocation)
Runs a full database script from disk.
elgg_get_engine_path()
/path/to/elgg/engine
sanitise_int($int, $signed=true)
Alias of sanitize_int.
execute_delayed_read_query($query, $callback=null, array $params=[])
Queue a query for running during shutdown that reads from the database.
sanitize_int($int, $signed=true)
Sanitizes an integer for database use.