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

◆ $defaults

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

Definition at line 21 of file radio.php.

◆ $id

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

Definition at line 39 of file radio.php.

◆ $list_class

$list_class = elgg_extract_class($vars, ['elgg-input-radios', "elgg-{$vars['align']}"])

Definition at line 42 of file radio.php.

◆ $options

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

Definition at line 32 of file radio.php.

◆ $radios

$radios = ''

Definition at line 58 of file radio.php.

◆ $value

$value = $vars['value']

Definition at line 55 of file radio.php.

◆ $vars [1/2]

$vars = array_merge($defaults, $vars)

Definition at line 30 of file radio.php.

◆ $vars [2/2]

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

Definition at line 47 of file radio.php.

◆ else

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

Definition at line 51 of file radio.php.

◆ foreach

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

Definition at line 59 of file radio.php.