Elgg  Version 6.2
Variables
groups.php File Reference

Go to the source code of this file.

Variables

 $options
 
 $target_guid = (int) elgg_extract('match_target', $vars)
 
if($target_guid) else
 
if(! $target instanceof \ElggEntity||! $target->canEdit()) if(elgg_extract('match_owner', $vars, false)) if(elgg_extract('match_membership', $vars, false)) $body = elgg_list_entities($options, 'elgg_search')
 

Variable Documentation

◆ $body

if (! $target instanceof \ElggEntity||! $target->canEdit()) if (elgg_extract( 'match_owner', $vars, false)) if (elgg_extract( 'match_membership', $vars, false)) $body = elgg_list_entities($options, 'elgg_search')

Definition at line 41 of file groups.php.

◆ $options

$options
Initial value:
= [
'query' => elgg_extract('term', $vars),
'type' => 'group',
'limit' => elgg_extract('limit', $vars),
'sort_by' => [
'property_type' => 'metadata',
'property' => 'name',
'direction' => 'ASC',
],
'fields' => ['metadata' => ['name']],
'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

Definition at line 7 of file groups.php.

◆ $target_guid

$target_guid = (int) elgg_extract('match_target', $vars)

Definition at line 21 of file groups.php.

◆ else

if ( $target_guid) else
Initial value:
{
$target
Definition: create.php:17
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
Definition: sessions.php:24

Definition at line 24 of file groups.php.