Elgg  Version 3.0
Namespaces | Functions | Variables
statistics.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Updates the advanced settings for the primary site object.
 

Functions

 get_entity_statistics ($owner_guid=0)
 Return an array reporting the number of various entities in the system. More...
 
 get_number_users ($show_deactivated=false)
 Return the number of users registered in the system. More...
 
 get_online_users (array $options=[])
 Render a list of currently online users. More...
 
 statistics_init ()
 Initialise the statistics admin page. More...
 

Variables

return function (\Elgg\EventsService $events,\Elgg\HooksRegistrationService $hooks)
 

Function Documentation

get_entity_statistics (   $owner_guid = 0)

Return an array reporting the number of various entities in the system.

Parameters
int$owner_guidOptional owner of the statistics
Returns
array

Definition at line 22 of file statistics.php.

get_number_users (   $show_deactivated = false)

Return the number of users registered in the system.

Parameters
bool$show_deactivatedCount not enabled users?
Returns
int

Definition at line 59 of file statistics.php.

get_online_users ( array  $options = [])

Render a list of currently online users.

This also support options from elgg_list_entities().

Parameters
array$optionsOptions array with keys:

seconds (int) => Number of seconds (default 600 = 10min)

Returns
string

Definition at line 93 of file statistics.php.

statistics_init ( )

Initialise the statistics admin page.

Returns
void

Definition at line 107 of file statistics.php.

Variable Documentation

See also
::loadCore Do not do work here. Just register for events.

Definition at line 115 of file statistics.php.