Elgg  Version 4.3
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 elgg_push_breadcrumb(elgg_echo('settings'), elgg_generate_url('settings:account', ['username' => $user->username]));
19 
20 $title = elgg_echo('usersettings:user', [$user->getDisplayName()]);
21 
23  'content' => elgg_view('core/settings/account', [
24  'entity' => $user,
25  ]),
26  'show_owner_block_menu' => false,
27  'filter_id' => 'settings',
28  'filter_value' => 'account',
29 ]);
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
Definition: pageowner.php:34
$title
Definition: account.php:20
elgg_view_page($title, $body, $page_shell= 'default', $vars=[])
Assembles and outputs a full page.
Definition: views.php:262
Thrown when entity can not be edited or container permissions do not allow it to be written...
elgg_generate_url($name, array $parameters=[])
Generate a URL for named route.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:23
$user
Definition: account.php:8
elgg echo
Translates a string.
Definition: deprecated.js:530
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
Definition: sessions.php:24
elgg_push_breadcrumb($text, $href=false)
Breadcrumbs Elgg uses a breadcrumb stack.
Definition: breadcrumbs.php:21
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179