Elgg  Version 3.0
Variables
create.php File Reference

Go to the source code of this file.

Variables

 $item = elgg_extract('item', $vars)
 Post comment river view. More...
 
if(!$item instanceof ElggRiverItem$comment = $item->getObjectEntity()
 
if(!$comment instanceof ElggComment$subject = $item->getSubjectEntity()
 
 $target = $item->getTargetEntity()
 
if(!$subject instanceof ElggEntity||!$target instanceof ElggEntity$subject_link
 
 $target_link
 
 $type = $target->getType()
 
 $subtype = $target->getSubtype() ? $target->getSubtype() : 'default'
 
 $key = false
 
 $keys
 
foreach($keys as $try_key) if($key===false) if($key!==false) $message = elgg_get_excerpt($comment->description)
 
if(substr($message,-3)=== '...') $vars ['message'] = $message
 

Variable Documentation

if (!$item instanceof ElggRiverItem) $comment = $item->getObjectEntity()

Definition at line 11 of file create.php.

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

Post comment river view.

Definition at line 6 of file create.php.

$key = false

Definition at line 40 of file create.php.

$keys
Initial value:
= [
"river:$type:$subtype:comment",
"river:$type:default:comment",
]

Definition at line 41 of file create.php.

foreach ($keys as $try_key) if ($key===false) if ($key!==false) $message = elgg_get_excerpt($comment->description)

Definition at line 73 of file create.php.

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

Definition at line 16 of file create.php.

if (!$subject instanceof ElggEntity||!$target instanceof ElggEntity) $subject_link
Initial value:
= elgg_view('output/url', [
'href' => $subject->getURL(),
'text' => $subject->getDisplayName(),
'class' => 'elgg-river-subject',
'is_trusted' => true,
])
getDisplayName()
{}
Definition: ElggObject.php:38
if(!$comment instanceof ElggComment) $subject
Definition: create.php:16
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246
getURL()
Gets the URL for this entity.

Definition at line 23 of file create.php.

$subtype = $target->getSubtype() ? $target->getSubtype() : 'default'

Definition at line 38 of file create.php.

$target = $item->getTargetEntity()

Definition at line 17 of file create.php.

$target_link
Initial value:
= elgg_view('output/url', [
'href' => $comment->getURL(),
'text' => $target->getDisplayName(),
'class' => 'elgg-river-target',
'is_trusted' => true,
])
$target
Definition: create.php:17
if(!$item instanceof ElggRiverItem) $comment
Definition: create.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246

Definition at line 30 of file create.php.

$type = $target->getType()

Definition at line 37 of file create.php.

if (substr($message,-3)=== '...') $vars['message'] = $message

Definition at line 83 of file create.php.