Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
Namespaces | Variables
checkbox.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

 $vars ['class'] = (array) elgg_extract('class', $vars, [])
 
 $vars ['class'][] = 'elgg-input-checkbox'
 
 $defaults
 
 $default = $vars['default']
 
if(isset($vars['name'])&&$default!==false) $label = elgg_extract('label', $vars, false)
 
 $label_class = (array) elgg_extract('label_class', $vars, [])
 
 $label_class [] = 'elgg-input-single-checkbox'
 
 $input = elgg_format_element('input', $vars)
 
if(!empty($label)) else
 

Variable Documentation

$default = $vars['default']

Definition at line 35 of file checkbox.php.

$defaults
Initial value:
= array(
'default' => 0,
'disabled' => false,
'type' => 'checkbox'
)

Definition at line 27 of file checkbox.php.

Definition at line 48 of file checkbox.php.

if (isset($vars['name'])&&$default!==false) $label = elgg_extract('label', $vars, false)

Definition at line 42 of file checkbox.php.

$label_class = (array) elgg_extract('label_class', $vars, [])

Definition at line 43 of file checkbox.php.

$label_class[] = 'elgg-input-single-checkbox'

Definition at line 44 of file checkbox.php.

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

Definition at line 24 of file checkbox.php.

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

Definition at line 25 of file checkbox.php.

if (!empty($label)) else
Initial value:
{
echo $input
$input
Definition: checkbox.php:48

Definition at line 53 of file checkbox.php.