38 echo '<table class="elgg-table">';
39 echo '<thead><tr><th>' .
elgg_echo(
'admin:statistics:numentities:type') .
'</th>';
40 echo '<th>' .
elgg_echo(
'admin:statistics:numentities:number') .
'</th></tr></thead>';
42 echo "<tr><td>$name</td><td>$num</td></tr>";
46 echo '<div class="mtm elgg-widget-more">';
48 'href' =>
'admin/statistics/numentities',
get_entity_statistics($owner_guid=0)
Return an array reporting the number of various entities in the system.
if(!$user||!$user->canDelete()) $name
if(empty($registered_entity_types)) $stats
if(elgg_in_context('default_widgets')) $widget
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
get_registered_entity_types($type=null)
Returns registered entity types and subtypes.
elgg echo
Translates a string.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.