Elgg  Version 3.0
Namespaces | Variables
radio.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Configuration exception.
 

Variables

 $defaults
 
 $vars = array_merge($defaults, $vars)
 
 $options_values = elgg_extract('options_values', $vars, [])
 
 $input_options = []
 
foreach($options_values as $key=> $value$options = elgg_extract('options', $vars)
 
if(!empty($options)&&empty($input_options)) if(empty($input_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
 
 $radios = ''
 
 foreach ($input_options as $label=> $option)
 

Variable Documentation

$defaults
Initial value:
= [
'align' => 'vertical'

Definition at line 21 of file radio.php.

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

Definition at line 62 of file radio.php.

$input_options = []

Definition at line 35 of file radio.php.

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

Definition at line 65 of file radio.php.

foreach ($options_values as $key=> $value) $options = elgg_extract('options', $vars)

Definition at line 50 of file radio.php.

$options_values = elgg_extract('options_values', $vars, [])

Definition at line 32 of file radio.php.

$radios = ''

Definition at line 79 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 70 of file radio.php.

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

Definition at line 74 of file radio.php.

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

Definition at line 80 of file radio.php.