Elgg  Version 3.0
Namespaces | Variables
userpicker.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Configuration exception.
 

Variables

 $name = elgg_extract('name', $vars, 'members', false)
 
 $guids = (array) elgg_extract('values', $vars, elgg_extract('value', $vars, []))
 
 $params = elgg_extract('options', $vars, [])
 
 $friends_only = (bool) elgg_extract('only_friends', $vars, false)
 
 $show_friends = (bool) elgg_extract('show_friends', $vars, !$friends_only)
 
if($friends_only) $params ['include_banned'] = (bool) elgg_extract('include_banned', $vars, false)
 
if(!empty($params)) $handler = elgg_extract('handler', $vars, 'livesearch')
 
 $params ['view'] = 'json'
 
 $limit = (int) elgg_extract('limit', $vars, 0)
 
 $attrs
 
if($show_friends) elseif($friends_only) else
 

Variable Documentation

$attrs
Initial value:
= [
'class' => elgg_extract_class($vars, ['elgg-user-picker'])
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153
$vars['type']
Definition: save.php:11

Definition at line 54 of file userpicker.php.

$friends_only = (bool) elgg_extract('only_friends', $vars, false)

Definition at line 31 of file userpicker.php.

$guids = (array) elgg_extract('values', $vars, elgg_extract('value', $vars, []))

Definition at line 27 of file userpicker.php.

$handler = elgg_extract('handler', $vars, 'livesearch')

Definition at line 48 of file userpicker.php.

$limit = (int) elgg_extract('limit', $vars, 0)

Definition at line 52 of file userpicker.php.

$name = elgg_extract('name', $vars, 'members', false)

Definition at line 25 of file userpicker.php.

$params = elgg_extract('options', $vars, [])

Definition at line 29 of file userpicker.php.

if ($friends_only) $params['include_banned'] = (bool) elgg_extract('include_banned', $vars, false)

Definition at line 37 of file userpicker.php.

$params['view'] = 'json'

Definition at line 49 of file userpicker.php.

$show_friends = (bool) elgg_extract('show_friends', $vars, !$friends_only)

Definition at line 32 of file userpicker.php.

if ($show_friends) elseif ($friends_only) else
Initial value:
{
echo elgg_view('input/hidden', [
'name' => 'match_on',
'value' => elgg_extract('match_on', $vars, 'users', false),
])
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
$vars['type']
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246

Definition at line 80 of file userpicker.php.