Elgg  Version 2.3
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 = elgg_extract_class($vars, ['elgg-input-radios', "elgg-{$vars['align']}"])
 
 $vars ['class'] = 'elgg-input-radio'
 
if(is_array($vars['value'])) else
 
 $value = $vars['value']
 
 $radios = ''
 
 foreach ($options as $label=> $option)
 

Variable Documentation

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 = elgg_extract_class($vars, ['elgg-input-radios', "elgg-{$vars['align']}"])

Definition at line 42 of file radio.php.

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

Definition at line 32 of file radio.php.

$radios = ''

Definition at line 58 of file radio.php.

$value = $vars['value']

Definition at line 55 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 47 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 51 of file radio.php.

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

Definition at line 59 of file radio.php.