Elgg  Version 6.1
Variables
summary.php File Reference

Go to the source code of this file.

Variables

 $item = elgg_extract('item', $vars)
 Short summary of the action that occurred. More...
 
if(!$item instanceof ElggRiverItem$subject = $item->getSubjectEntity()
 
if(!$subject instanceof ElggEntity$object = $item->getObjectEntity()
 
if(!$object instanceof ElggEntity$subject_link = elgg_view_entity_url($subject, ['class' => 'elgg-river-subject'])
 
 $object_link
 
 $action = $item->action_type
 
 $type = $item->type
 
 $subtype = $item->subtype
 
 $group_string = ''
 
 $container = $object->getContainerEntity()
 
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key = false
 
 $keys
 
foreach($keys as $try_key) $summary = ''
 
 if ($key!==false)
 

Variable Documentation

$action = $item->action_type

Definition at line 32 of file summary.php.

$container = $object->getContainerEntity()

Definition at line 38 of file summary.php.

$group_string = ''

Definition at line 37 of file summary.php.

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

Short summary of the action that occurred.

['item'] ElggRiverItem

Definition at line 8 of file summary.php.

if ($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key = false
$keys
Initial value:
= [
"river:{$type}:{$subtype}:{$action}",
"river:{$type}:{$subtype}:default",
"river:{$type}:{$action}",
"river:{$type}:default",
]

Definition at line 45 of file summary.php.

if (!$subject instanceof ElggEntity) $object = $item->getObjectEntity()

Definition at line 18 of file summary.php.

$object_link
Initial value:
= elgg_view('output/url', [
'href' => $object->getURL(),
'class' => 'elgg-river-object',
'is_trusted' => true,
])
elgg_get_excerpt(string $text, int $num_chars=250)
Returns an excerpt.
Definition: output.php:83
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
getURL()
Gets the URL for this entity.
Definition: ElggEntity.php:573
if(!$subject instanceof ElggEntity) $object
Definition: summary.php:18
getDisplayName()
Get the entity's display name.
Definition: ElggEntity.php:306

Definition at line 25 of file summary.php.

if (!$item instanceof ElggRiverItem) $subject = $item->getSubjectEntity()

Definition at line 13 of file summary.php.

if (!$object instanceof ElggEntity) $subject_link = elgg_view_entity_url($subject, ['class' => 'elgg-river-subject'])

Definition at line 23 of file summary.php.

$subtype = $item->subtype

Definition at line 34 of file summary.php.

foreach ($keys as $try_key) $summary = ''

Definition at line 58 of file summary.php.

$type = $item->type

Definition at line 33 of file summary.php.

if($key!==false)

Definition at line 59 of file summary.php.