Elgg  Version 1.11
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 = elgg_extract('label_class', $vars)
 
 $input = elgg_format_element('input', $vars)
 
if(!empty($label)) else
 

Variable Documentation

$default = $vars['default']

Definition at line 34 of file checkbox.php.

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

Definition at line 26 of file checkbox.php.

Definition at line 46 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 = elgg_extract('label_class', $vars)

Definition at line 42 of file checkbox.php.

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

Definition at line 23 of file checkbox.php.

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

Definition at line 24 of file checkbox.php.

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

Definition at line 50 of file checkbox.php.