Elgg  Version 6.2
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

$default_value = false

Definition at line 13 of file checkbox.php.

◆ $item

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

Render checkbox selector to select the ID of the item.

@uses $vars['item'] The item being rendered @uses $vars['item_vars'] Vars received from the page/components/table view @uses $vars['type'] The item type or "" @uses $vars['name'] The name of the checkbox (default: item_id[]) @uses $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.

◆ $name

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

Definition at line 26 of file checkbox.php.

◆ $value

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

Definition at line 20 of file checkbox.php.