Elgg  Version master
Variables
default.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 
if(! $entity instanceof \ElggObject$input_name = elgg_extract('input_name', $vars)
 
 $viewtype = elgg_get_viewtype()
 
 $icon = ''
 
if($entity->hasIcon('tiny')) $label = elgg_view_image_block($icon, $entity->getDisplayName(), ['class' => 'elgg-autocomplete-item'])
 
 $data = $entity->toObject()
 
$data label = $label
 
$data value = $entity->guid
 
$data icon = $icon
 
 if ( $input_name)
 

Variable Documentation

◆ $data

$data = $entity->toObject()

Definition at line 24 of file default.php.

◆ $entity

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

Definition at line 3 of file default.php.

◆ $icon

$icon = ''

Definition at line 14 of file default.php.

◆ $input_name

if (! $entity instanceof \ElggObject) $input_name = elgg_extract('input_name', $vars)

Definition at line 8 of file default.php.

◆ $label

if ( $entity->hasIcon( 'tiny')) $label = elgg_view_image_block($icon, $entity->getDisplayName(), ['class' => 'elgg-autocomplete-item'])

Definition at line 22 of file default.php.

◆ $viewtype

$viewtype = elgg_get_viewtype()

Definition at line 11 of file default.php.

◆ icon

$data icon = $icon

Definition at line 27 of file default.php.

◆ if

if($input_name) (   $input_name)

Definition at line 29 of file default.php.

◆ label

$data label = $label

Definition at line 25 of file default.php.

◆ value

$data value = $entity->guid

Definition at line 26 of file default.php.