Elgg  Version master
Variables
objects.php File Reference

Go to the source code of this file.

Variables

 $subtype = elgg_extract('subtype', $vars)
 
if(empty($subtype)) $options
 
 $body = elgg_list_entities($options, 'elgg_search')
 

Variable Documentation

◆ $body

$body = elgg_list_entities($options, 'elgg_search')

Definition at line 26 of file objects.php.

◆ $options

if (empty( $subtype)) $options
Initial value:
= [
'query' => elgg_extract('term', $vars),
'type' => 'object',
'subtype' => $subtype,
'limit' => elgg_extract('limit', $vars),
'sort_by' => [
'property_type' => 'metadata',
'property' => 'title',
'direction' => 'ASC',
],
'fields' => ['metadata' => ['title']],
'item_view' => elgg_extract('item_view', $vars, 'search/entity'),
'input_name' => elgg_extract('name', $vars),
]
$vars
Definition: theme.php:5
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:256
$subtype
Definition: objects.php:5

Definition at line 11 of file objects.php.

◆ $subtype

$subtype = elgg_extract('subtype', $vars)

Definition at line 5 of file objects.php.