Elgg  Version master
Variables
numentities.php File Reference

Go to the source code of this file.

Variables

 $user = elgg_extract('entity', $vars, elgg_get_page_owner_entity())
 Elgg statistics screen. More...
 
if(!$user instanceof\ElggUser) $options
 
if(!$user instanceof\ElggUser) if(!elgg_is_admin_logged_in()) $entity_stats = elgg_get_entity_statistics($options)
 
if(empty($entity_stats)) $rows = []
 
foreach($entity_stats as $type=> $subtypes) if(empty($rows)) if($user->guid===elgg_get_logged_in_user_guid()) else
 
 $content = elgg_format_element('table', ['class' => 'elgg-table-alt'], implode(PHP_EOL, $rows))
 

Variable Documentation

$content = elgg_format_element('table', ['class' => 'elgg-table-alt'], implode(PHP_EOL, $rows))

Definition at line 55 of file numentities.php.

if (!$user instanceof\ElggUser) if (!elgg_is_admin_logged_in()) $entity_stats = elgg_get_entity_statistics($options)

Definition at line 21 of file numentities.php.

if (!$user instanceof\ElggUser) $options
Initial value:
= [
'owner_guid' => $user->guid
$user
Elgg statistics screen.
Definition: numentities.php:8

Definition at line 13 of file numentities.php.

if (empty($entity_stats)) $rows = []

Definition at line 26 of file numentities.php.

$user = elgg_extract('entity', $vars, elgg_get_page_owner_entity())

Elgg statistics screen.

$vars['entity'] The user entity for whom to show statistics

Definition at line 8 of file numentities.php.

foreach ($entity_stats as $type=> $subtypes) if (empty($rows)) if ($user->guid===elgg_get_logged_in_user_guid()) else
Initial value:
{
$title = elgg_echo('usersettings:statistics:numentities:user', [$user->getDisplayName()])
$user
Elgg statistics screen.
Definition: numentities.php:8
$title
Definition: generic.php:50
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17

Definition at line 51 of file numentities.php.