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

$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 [1/2]

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

Definition at line 42 of file radio.php.

◆ $list_class [2/2]

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

Definition at line 43 of file radio.php.

◆ $options

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

Definition at line 32 of file radio.php.

◆ $radios

$radios = ''

Definition at line 60 of file radio.php.

◆ $value

$value = $vars['value']

Definition at line 57 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 49 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 53 of file radio.php.

◆ foreach

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

Definition at line 61 of file radio.php.