Elgg  Version 6.2
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$type = $target->getType()
 
 $subtype = $target->getSubtype() ? $target->getSubtype() : 'default'
 
 $key = false
 
 $keys
 
foreach($keys as $try_key) if($key !==false) $message = elgg_get_excerpt((string) $comment->description)
 
if(elgg_substr($message, -3)==='...') $vars ['message'] = $message
 

Variable Documentation

◆ $comment

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

Definition at line 11 of file create.php.

◆ $item

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

Post comment river view.

Definition at line 6 of file create.php.

◆ $key

$key = false

Definition at line 26 of file create.php.

◆ $keys

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

Definition at line 27 of file create.php.

◆ $message

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

Definition at line 45 of file create.php.

◆ $subject

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

Definition at line 16 of file create.php.

◆ $subtype

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

Definition at line 24 of file create.php.

◆ $target

$target = $item->getTargetEntity()

Definition at line 17 of file create.php.

◆ $type

if (! $subject instanceof ElggEntity||! $target instanceof ElggEntity) $type = $target->getType()

Definition at line 23 of file create.php.

◆ $vars

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

Definition at line 50 of file create.php.