Elgg  Version 3.0
objects.php
Go to the documentation of this file.
1 <?php
2 
4 
5 $limit = (int) elgg_extract('limit', $vars, elgg_get_config('default_limit'));
8 
10  'query' => $query,
11  'type' => 'object',
12  'subtype' => elgg_extract('subtype', $vars),
13  'limit' => $limit,
14  'sort' => 'title',
15  'order' => 'ASC',
16  'fields' => ['metadata' => ['title']],
17  'item_view' => 'search/entity',
18  'input_name' => $input_name,
19 ];
20 
21 $body = elgg_list_entities($options, 'elgg_search');
22 
$options
Definition: objects.php:9
elgg_list_entities(array $options=[], $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
Definition: entities.php:577
elgg_view_page($title, $body, $page_shell= 'default', $vars=[])
Assembles and outputs a full page.
Definition: views.php:360
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
$limit
Definition: objects.php:5
elgg echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$input_name
Definition: objects.php:7
$query
Definition: objects.php:6
$vars['type']
Definition: save.php:11
$body
Definition: objects.php:21
elgg_get_config($name, $default=null)
Get an Elgg configuration value.