Elgg  Version 3.0
Namespaces | Variables
checkboxes.php File Reference

Go to the source code of this file.


 Configuration exception.


 $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)) $list_class
 $id = elgg_extract('id', $vars, '')
if(is_array(elgg_extract('value', $vars))) else
if($vars['name']&&$vars['default']!==false) $input_vars = $vars
 $input_vars ['default'] = false
 $checkboxes = ''
 foreach ($input_options as $label=> $option)

Variable Documentation

$checkboxes = ''

Definition at line 105 of file checkboxes.php.

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

Definition at line 32 of file checkboxes.php.

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

Definition at line 79 of file checkboxes.php.

$input_options = []

Definition at line 46 of file checkboxes.php.

if ($vars['name']&&$vars['default']!==false) $input_vars = $vars

Definition at line 98 of file checkboxes.php.

$input_vars['default'] = false

Definition at line 99 of file checkboxes.php.

if (!empty($options)&&empty($input_options)) if (empty($input_options)) $list_class
Initial value:
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153
Definition: checkboxes.php:41

Definition at line 73 of file checkboxes.php.

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

Definition at line 61 of file checkboxes.php.

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

Definition at line 43 of file checkboxes.php.

$vars = array_merge($defaults, $vars)

Definition at line 41 of file checkboxes.php.

if (is_array(elgg_extract('value', $vars))) else
Initial value:
$values = [elgg_strtolower(elgg_extract('value', $vars))]
Wrapper function for mb_strtolower().
Definition: mb_wrapper.php:174
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
Definition: checkboxes.php:41

Definition at line 84 of file checkboxes.php.

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

Definition at line 106 of file checkboxes.php.