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

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

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=array())
 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()

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 20 of file statistics.php.

◆ get_number_users()

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 57 of file statistics.php.

◆ get_online_users()

get_online_users ( array  $options = array())

Render a list of currently online users.

@tip 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 89 of file statistics.php.

◆ statistics_init()

statistics_init ( )

Initialise the statistics admin page.

Returns
void @access private

Definition at line 103 of file statistics.php.

Variable Documentation

◆ function

Definition at line 108 of file statistics.php.