Elgg  Version 2.3
Namespaces | Variables
checkboxes.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

 $defaults
 
 $vars = array_merge($defaults, $vars)
 
if(empty($vars['options'])) $list_class = elgg_extract_class($vars)
 
 $list_class [] = 'elgg-input-checkboxes'
 
 $id = elgg_extract('id', $vars, '')
 
if(is_array($vars['value'])) else
 
 $input_vars = $vars
 
 $input_vars ['default'] = false
 
if($vars['name'] && $vars['default'] !==false) $checkboxes = ''
 
 foreach ( $vars[ 'options'] as $label=> $value)
 

Variable Documentation

◆ $checkboxes

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

Definition at line 74 of file checkboxes.php.

◆ $defaults

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

Definition at line 31 of file checkboxes.php.

◆ $id

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

Definition at line 52 of file checkboxes.php.

◆ $input_vars [1/2]

$input_vars = $vars
Examples
/root/Elgg/engine/lib/views.php.

Definition at line 61 of file checkboxes.php.

◆ $input_vars [2/2]

$input_vars[ 'default'] = false

Definition at line 62 of file checkboxes.php.

◆ $list_class [1/2]

if (empty( $vars[ 'options'])) $list_class = elgg_extract_class($vars)

Definition at line 46 of file checkboxes.php.

◆ $list_class [2/2]

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

Definition at line 49 of file checkboxes.php.

◆ $vars

$vars = array_merge($defaults, $vars)

Definition at line 40 of file checkboxes.php.

◆ else

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

Definition at line 57 of file checkboxes.php.

◆ foreach

foreach($vars['options'] as $label=> $value) (   $vars as[ 'options'],
  $value 
)

Definition at line 75 of file checkboxes.php.