26 'selects' => array(
'COUNT(*) as cnt'),
28 'group_by' =>
'e.type, e.subtype',
30 'order_by' =>
'cnt DESC',
33 if (!empty($grouped_entities)) {
34 foreach ($grouped_entities as
$entity) {
35 $type = $entity->getType();
62 if (!$show_deactivated) {
66 $query =
"SELECT count(*) as count 67 from {$CONFIG->dbprefix}entities where type='user' $access";
104 elgg_extend_view(
'core/settings/statistics',
'core/settings/statistics/online');
105 elgg_extend_view(
'core/settings/statistics',
'core/settings/statistics/numentities');
109 $events->registerHandler(
'init',
'system',
'statistics_init');
get_entity_statistics($owner_guid=0)
Return an array reporting the number of various entities in the system.
get_data_row($query, $callback="")
Retrieve a single row from the database.
statistics_init()
Initialise the statistics admin page.
get_online_users(array $options=array())
Render a list of currently online users.
elgg_extend_view($view, $view_extension, $priority=501, $viewtype= '')
Extends a view with another view.
const ELGG_ENTITIES_ANY_VALUE
elgg_get_entities(array $options=array())
Returns an array of entities with optional filtering.
elgg global
Pointer to the global context.
elgg_list_entities(array $options=array(), $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
get_number_users($show_deactivated=false)
Return the number of users registered in the system.
_elgg_get_access_where_sql(array $options=array())
Returns the SQL where clause for enforcing read access to data.