Elgg
Version master
views
rss
page
list
all.php
Go to the documentation of this file.
1
<?php
8
$defaults
= [
9
'distinct'
=>
false
,
10
];
11
12
$options
= (array)
elgg_extract
(
'options'
,
$vars
, []);
13
$options
= array_merge(
$defaults
,
$options
);
14
15
if
(empty(
$options
[
'type'
]) && empty(
$options
[
'subtype'
])) {
16
throw
new \Elgg\Exceptions\InvalidArgumentException(
"Missing 'type' and 'subtype' in the listing options"
);
17
}
18
19
echo
elgg_list_entities
(
$options
);
$options
$options
Definition:
all.php:13
$defaults
$defaults
Generic view for entity listing.
Definition:
all.php:8
$vars
$vars['options']
Definition:
all.php:32
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:246
elgg_list_entities
elgg_list_entities(array $options=[], ?callable $getter=null, ?callable $viewer=null)
Returns a string of rendered entities.
Definition:
entities.php:551
Generated on Tue Dec 9 2025 00:02:12 for Elgg by
1.9.1