Elgg  Version 1.11
Namespaces | Variables
select.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

 $vars ['class'] = (array) elgg_extract('class', $vars, [])
 
 $vars ['class'][] = 'elgg-input-dropdown'
 
 $defaults
 
 $options_values = $vars['options_values']
 
 $options = $vars['options']
 
 $value = is_array($vars['value']) ? $vars['value'] : array($vars['value'])
 
 $vars ['multiple'] = !empty($vars['multiple'])
 
if($vars['multiple']&&!empty($vars['name'])&&is_string($vars['name'])) $options_list = ''
 
if($options_values) else
 

Variable Documentation

$defaults
Initial value:
= array(
'disabled' => false,
'value' => '',
'options_values' => array(),
'options' => array(),
)

Definition at line 24 of file select.php.

$options = $vars['options']

Definition at line 36 of file select.php.

if ($vars['multiple']&&!empty($vars['name'])&&is_string($vars['name'])) $options_list = ''

Definition at line 52 of file select.php.

$options_values = $vars['options_values']

Definition at line 33 of file select.php.

$value = is_array($vars['value']) ? $vars['value'] : array($vars['value'])

Definition at line 39 of file select.php.

$vars = (array) elgg_extract('class', $vars, [])

Definition at line 21 of file select.php.

$vars['class'][] = 'elgg-input-dropdown'

Definition at line 22 of file select.php.

$vars['multiple'] = !empty($vars['multiple'])

Definition at line 43 of file select.php.

if ($options_values) else
Initial value:
{
if (is_array($options)) {
foreach ($options as $option) {
$option_attrs = ['selected' => in_array((string)$option, $value)];
$options_list .= elgg_format_element('option', $option_attrs, $option);
}
}
}
$value
Definition: select.php:39
$options
Definition: select.php:36
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition: output.php:215
if($vars['multiple']&&!empty($vars['name'])&&is_string($vars['name'])) $options_list
Definition: select.php:52
elgg echo
Translates a string.
Definition: languages.js:43
$vars['class']
Definition: select.php:21

Definition at line 64 of file select.php.