Elgg  Version master
Variables
checkbox.php File Reference

Go to the source code of this file.

Variables

 $item = elgg_extract('item', $vars)
 Render checkbox selector to select the ID of the item. More...
 
 $default_value = false
 
if($item instanceof\ElggEntity) elseif($item instanceof\ElggExtender) $value = elgg_extract('value', $vars, $default_value)
 
if($value===false) $name = elgg_extract('name', $vars, 'item_id[]')
 

Variable Documentation

$default_value = false

Definition at line 13 of file checkbox.php.

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

Render checkbox selector to select the ID of the item.

$vars['item'] The item being rendered $vars['item_vars'] Vars received from the page/components/table view $vars['type'] The item type or "" $vars['name'] The name of the checkbox (default: item_id[]) $vars['value'] The value of the checkbox (default to the GUID of an ElggEntity or the ID of an ElggExtender)

Definition at line 12 of file checkbox.php.

if ($value===false) $name = elgg_extract('name', $vars, 'item_id[]')

Definition at line 26 of file checkbox.php.

if ($item instanceof\ElggEntity) elseif ($item instanceof\ElggExtender) $value = elgg_extract('value', $vars, $default_value)

Definition at line 20 of file checkbox.php.