Elgg  Version master
Variables
item.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 Item view for generating HTML of an entity in an input/autocomplete (or input/entitypicker) More...
 
if(!$entity instanceof ElggEntity$type = $entity->getType()
 
 $subtype = $entity->getSubtype()
 
 $views
 

Variable Documentation

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

Item view for generating HTML of an entity in an input/autocomplete (or input/entitypicker)

$vars['entity'] the selected entity $vars['input_name'] name of the returned data array

Definition at line 9 of file item.php.

$subtype = $entity->getSubtype()

Definition at line 15 of file item.php.

if (!$entity instanceof ElggEntity) $type = $entity->getType()

Definition at line 14 of file item.php.

$views
Initial value:
= [
"input/autocomplete/{$type}/{$subtype}",
"input/autocomplete/{$type}/default",
'input/autocomplete/default',
]
Examples:
/root/Elgg/engine/classes/Elgg/FormsService.php, and /root/Elgg/engine/lib/views.php.

Definition at line 17 of file item.php.