Elgg  Version 5.1
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$entity_stats = elgg_get_entity_statistics($user->guid)
 
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 49 of file numentities.php.

if (!$user instanceof ElggUser) $entity_stats = elgg_get_entity_statistics($user->guid)

Definition at line 13 of file numentities.php.

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

Definition at line 18 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 45 of file numentities.php.