Elgg  Version master
view.php
Go to the documentation of this file.
1 <?php
2 
3 $user_guid = (int) elgg_extract('guid', $vars);
4 
6 
8 
9 echo elgg_view_page($user->getDisplayName(), [
10  'content' => elgg_view_entity($user),
11  'sidebar' => false,
12  'filter_id' => 'user/view',
13 ]);
elgg_entity_gatekeeper(int $guid, string $type=null, string $subtype=null, bool $validate_can_edit=false)
Can the viewer see this entity?
Definition: gatekeepers.php:99
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_view_page(string $title, string|array $body, string $page_shell= 'default', array $vars=[])
Assembles and outputs a full page.
Definition: views.php:235
elgg_view_entity(\ElggEntity $entity, array $vars=[])
Returns a string of a rendered entity.
Definition: views.php:493
get_user(int $guid)
Elgg users Functions to manage multiple or single users in an Elgg install.
Definition: users.php:16
$vars
Definition: theme.php:5
$user
Definition: view.php:7
$user_guid
Definition: view.php:3