Elgg  Version master
account.php
Go to the documentation of this file.
1 <?php
7 
9 if (!$user instanceof \ElggUser) {
12 }
13 
14 if (!$user->canEdit()) {
15  throw new EntityPermissionsException();
16 }
17 
18 $title = elgg_echo('usersettings:user', [$user->getDisplayName()]);
19 
20 echo elgg_view_page($title, [
21  'content' => elgg_view('core/settings/account', [
22  'entity' => $user,
23  ]),
24  'show_owner_block_menu' => false,
25  'filter_id' => 'settings',
26  'filter_value' => 'account',
27 ]);
if(!$user instanceof\ElggUser) if(!$user->canEdit()) $title
Definition: account.php:18
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_set_page_owner_guid(int $guid)
Set the guid of the entity that owns this page.
Definition: pageowner.php:34
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
Thrown when entity can not be edited or container permissions do not allow it to be written...
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_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:23
$user
Definition: account.php:8
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
Definition: sessions.php:24