187 elgg_log(
"DB Queries for this page: $db_calls",
'INFO');
225 register_shutdown_function(
'_elgg_db_run_delayed_queries');
226 register_shutdown_function(
'_elgg_db_log_profiling_data');
_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.
get_data_row($query, $callback="")
Retrieve a single row from the database.
_elgg_db_run_delayed_queries()
Execute any delayed queries upon shutdown.
delete_data($query)
Remove a row from the database.
update_data($query)
Update a row in the database.
sanitize_string($string)
Sanitize a string for database use.
insert_data($query)
Insert a row into the database.
execute_delayed_read_query($query, $handler="")
Queue a query for running during shutdown that reads from the database.
execute_delayed_write_query($query, $handler="")
Queue a query for running during shutdown that writes to the database.
sanitise_string($string)
Wrapper function for alternate English spelling (.
_elgg_db_init()
Registers shutdown functions for database profiling and delayed queries.
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Register a callback as an Elgg event handler.
elgg_log($message, $level= 'NOTICE')
Display or log a message.
run_sql_script($scriptlocation)
Runs a full database script from disk.
get_data($query, $callback="")
Retrieve rows from the database.
sanitise_int($int, $signed=true)
Sanitizes an integer for database use.
sanitize_int($int, $signed=true)
Sanitizes an integer for database use.