Elgg  Version 3.0
Namespaces | Variables
checkbox.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Configuration exception.
 

Variables

 $vars ['class'] = elgg_extract_class($vars, 'elgg-input-checkbox')
 
 $defaults
 
 $default = elgg_extract('default', $vars)
 
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'
 
 $switch = elgg_extract('switch', $vars, false)
 
if($switch$input = elgg_format_element('input', $vars)
 
if($switch) if(!empty($label)) else
 

Variable Documentation

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

Definition at line 35 of file checkbox.php.

$defaults
Initial value:
= [
'default' => 0

Definition at line 27 of file checkbox.php.

if ($switch) $input = elgg_format_element('input', $vars)

Definition at line 59 of file checkbox.php.

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

Definition at line 46 of file checkbox.php.

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

Definition at line 47 of file checkbox.php.

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

Definition at line 48 of file checkbox.php.

$switch = elgg_extract('switch', $vars, false)

Definition at line 52 of file checkbox.php.

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

Definition at line 25 of file checkbox.php.

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

Definition at line 74 of file checkbox.php.