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

$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 47 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 [1/2]

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

Definition at line 42 of file checkbox.php.

◆ $label_class [2/2]

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

Definition at line 43 of file checkbox.php.

◆ $vars

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

Definition at line 24 of file checkbox.php.

◆ else

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

Definition at line 52 of file checkbox.php.