Elgg
Version 6.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
trash
listing
owner.php
Go to the documentation of this file.
1
<?php
9
$options
= (array)
elgg_extract
(
'options'
,
$vars
);
10
$entity
=
elgg_extract
(
'entity'
,
$vars
);
11
if
(!
$entity
instanceof \
ElggUser
) {
12
return
;
13
}
14
15
$owner_options
= [
16
'owner_guid'
=>
$entity
->guid,
17
'preload_owners'
=>
false
,
18
];
19
20
$vars
[
'options'
] = array_merge(
$options
,
$owner_options
);
21
22
echo
elgg_view
(
'trash/listing/all'
,
$vars
);
elgg_extract
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
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition:
views.php:156
$vars
if(!$entity instanceof\ElggUser) $vars['options']
Definition:
owner.php:20
$options
$options
List all the deleted entities of the given owner.
Definition:
owner.php:9
$entity
$entity
Definition:
owner.php:18
$owner_options
if(!$entity instanceof\ElggUser) $owner_options
Definition:
owner.php:15
ElggUser
Definition:
ElggUser.php:28
Generated on Sat Sep 7 2024 00:00:23 for Elgg by
1.8.11