Elgg  Version 6.0
Variables
online.php File Reference

Go to the source code of this file.

Variables

 $user = elgg_extract('entity', $vars, elgg_get_page_owner_entity())
 Statistics about this user. More...
 
if(!$user instanceof\ElggUser) $time_created
 
 $last_login
 
if($user->guid===elgg_get_logged_in_user_guid()) else
 
 $table
 

Variable Documentation

$last_login
Initial value:
= elgg_view('output/date', [
'value' => $user->last_login,
'format' => DATE_RFC2822,
])
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$user
Statistics about this user.
Definition: online.php:8

Definition at line 17 of file online.php.

$table
Initial value:
= elgg_format_element('tr', [], implode(PHP_EOL, [
elgg_format_element('td', [], elgg_echo('usersettings:statistics:label:name')),
elgg_format_element('td', [], $user->getDisplayName()),
]))
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
$user
Statistics about this user.
Definition: online.php:8
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145

Definition at line 28 of file online.php.

if (!$user instanceof\ElggUser) $time_created
Initial value:
= elgg_view('output/date', [
'value' => $user->time_created,
'format' => DATE_RFC2822,
])
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$user
Statistics about this user.
Definition: online.php:8

Definition at line 13 of file online.php.

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

Statistics about this user.

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

Definition at line 8 of file online.php.

if ($user->guid===elgg_get_logged_in_user_guid()) else
Initial value:
{
$title = elgg_echo('usersettings:statistics:details:user', [$user->getDisplayName()])
$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
$user
Statistics about this user.
Definition: online.php:8

Definition at line 24 of file online.php.