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

$default = $vars['default']

Definition at line 34 of file checkbox.php.

◆ $defaults

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

Definition at line 26 of file checkbox.php.

◆ $input

Definition at line 46 of file checkbox.php.

◆ $label

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

Definition at line 41 of file checkbox.php.

◆ $label_class

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

Definition at line 42 of file checkbox.php.

◆ $vars [1/2]

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

Definition at line 23 of file checkbox.php.

◆ $vars [2/2]

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

Definition at line 24 of file checkbox.php.

◆ else

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

Definition at line 50 of file checkbox.php.