Elgg  Version master
owner.php
Go to the documentation of this file.
1 <?php
7 
8 if (!elgg_get_config('trash_enabled')) {
9  throw new PageNotFoundException();
10 }
11 
12 /* @var $user \ElggUser */
14 
15 $title = elgg_echo('trash:owner:title');
17  $title = elgg_echo('trash:owner:title_owner', [$user->getDisplayName()]);
18 }
19 
20 echo elgg_view_page($title, [
21  'content' => elgg_view('trash/listing/owner', ['entity' => $user]),
22  'filter_id' => 'trash',
23  'show_owner_block' => false,
24 ]);
$title
Definition: owner.php:15
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
Thrown when page is not accessible.
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
if(!elgg_get_config('trash_enabled')) $user
Definition: owner.php:13
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.
Definition: sessions.php:34