Elgg  Version 2.3
Namespaces | Variables
checkbox.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

 $vars ['class'] = elgg_extract_class($vars, '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 34 of file checkbox.php.

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

Definition at line 26 of file checkbox.php.

Definition at line 47 of file checkbox.php.

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

Definition at line 41 of file checkbox.php.

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

Definition at line 42 of file checkbox.php.

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

Definition at line 43 of file checkbox.php.

$vars = elgg_extract_class($vars, 'elgg-input-checkbox')

Definition at line 24 of file checkbox.php.

if (!empty($label)) else
Initial value:
{
$input
Definition: checkbox.php:47
elgg echo
Translates a string.
Definition: languages.js:48

Definition at line 52 of file checkbox.php.