Elgg  Version 1.11
Namespaces | Variables
radio.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

 $defaults
 
 $vars = array_merge($defaults, $vars)
 
 $options = elgg_extract('options', $vars)
 
if(empty($options)) $id = elgg_extract('id', $vars, '')
 
 $list_class = (array) elgg_extract('class', $vars, [])
 
 $list_class [] = 'elgg-input-radios'
 
 $vars ['class'] = 'elgg-input-radio'
 
if(is_array($vars['value'])) else
 
 $value = $vars['value']
 
 $radios = ''
 
 foreach ($options as $label=> $option)
 

Variable Documentation

$defaults
Initial value:
= array(
'align' => 'vertical',
'value' => array(),
'disabled' => false,
'options' => array(),
'name' => '',
'type' => 'radio'
)

Definition at line 21 of file radio.php.

if (empty($options)) $id = elgg_extract('id', $vars, '')

Definition at line 39 of file radio.php.

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

Definition at line 42 of file radio.php.

$list_class[] = 'elgg-input-radios'

Definition at line 43 of file radio.php.

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

Definition at line 32 of file radio.php.

$radios = ''

Definition at line 60 of file radio.php.

$value = $vars['value']

Definition at line 57 of file radio.php.

$vars = array_merge($defaults, $vars)

Definition at line 30 of file radio.php.

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

Definition at line 49 of file radio.php.

if (is_array($vars['value'])) else
Initial value:
{
$vars['value'] = array(elgg_strtolower($vars['value']))
elgg_strtolower()
Wrapper function for mb_strtolower().
Definition: mb_wrapper.php:174
$vars
Definition: radio.php:30

Definition at line 53 of file radio.php.

foreach($options as $label=> $option)

Definition at line 61 of file radio.php.