Elgg  Version 2.3
Variables
summary.php File Reference

Go to the source code of this file.

Variables

 $item = $vars['item']
 Short summary of the action that occurred. More...
 
 $subject = $item->getSubjectEntity()
 
 $object = $item->getObjectEntity()
 
 $subject_link
 
 $object_text = $object->title ? $object->title : $object->name
 
 $object_link
 
 $action = $item->action_type
 
 $type = $item->type
 
 $subtype = $item->subtype ? $item->subtype : 'default'
 
 $key = "river:$action:$type:$subtype"
 
 $summary = elgg_echo($key, array($subject_link, $object_link))
 
 if ($summary==$key)
 

Variable Documentation

$action = $item->action_type

Definition at line 28 of file summary.php.

$item = $vars['item']

Short summary of the action that occurred.

['item'] ElggRiverItem

Definition at line 8 of file summary.php.

$key = "river:$action:$type:$subtype"
$object = $item->getObjectEntity()

Definition at line 11 of file summary.php.

$object_link
Initial value:
= elgg_view('output/url', array(
'href' => $object->getURL(),
'text' => elgg_get_excerpt($object_text, 100),
'class' => 'elgg-river-object',
'is_trusted' => true,
))
$object
Definition: summary.php:11
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
elgg_get_excerpt($text, $num_chars=250)
Returns an excerpt.
Definition: output.php:62
$object_text
Definition: summary.php:20

Definition at line 21 of file summary.php.

$object_text = $object->title ? $object->title : $object->name

Definition at line 20 of file summary.php.

$subject = $item->getSubjectEntity()

Definition at line 10 of file summary.php.

$subject_link
Initial value:
= elgg_view('output/url', array(
'href' => $subject->getURL(),
'text' => $subject->name,
'class' => 'elgg-river-subject',
'is_trusted' => true,
))
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
$subject
Definition: summary.php:10

Definition at line 13 of file summary.php.

$subtype = $item->subtype ? $item->subtype : 'default'

Definition at line 30 of file summary.php.

$summary = elgg_echo($key, array($subject_link, $object_link))

Definition at line 35 of file summary.php.

$type = $item->type

Definition at line 29 of file summary.php.

if($summary==$key)

Definition at line 37 of file summary.php.