Elgg  Version 6.1
Variables
comment.php File Reference

Go to the source code of this file.

Variables

 $full_view = elgg_extract('full_view', $vars, true)
 Elgg comment view. More...
 
 $comment = elgg_extract('entity', $vars)
 
if(!$comment instanceof\ElggComment) $entity = $comment->getContainerEntity()
 
 $commenter = $comment->getOwnerEntity()
 
if(!$entity instanceof\ElggEntity||!$commenter instanceof\ElggEntity) if($comment->canEdit()) $params
 
if($comment->isCreatedByContentOwner()) if($full_view) else
 

Variable Documentation

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

Definition at line 11 of file comment.php.

$commenter = $comment->getOwnerEntity()

Definition at line 17 of file comment.php.

if (!$comment instanceof\ElggComment) $entity = $comment->getContainerEntity()

Definition at line 16 of file comment.php.

$full_view = elgg_extract('full_view', $vars, true)

Elgg comment view.

$vars['entity'] ElggComment $vars['full_view'] Display full view or brief view

Definition at line 9 of file comment.php.

if (!$entity instanceof\ElggEntity||!$commenter instanceof\ElggEntity) if ($comment->canEdit()) $params
Initial value:
= [
'icon_entity' => $commenter
$commenter
Definition: comment.php:17

Definition at line 26 of file comment.php.

if ($comment->isCreatedByContentOwner()) if ($full_view) else
Initial value:
{
$params['content'] = elgg_get_excerpt((string) $comment->description)
elgg_get_excerpt(string $text, int $num_chars=250)
Returns an excerpt.
Definition: output.php:83
if(!$entity instanceof\ElggEntity||!$commenter instanceof\ElggEntity) if($comment->canEdit()) $params
Definition: comment.php:26
$comment
Definition: comment.php:11

Definition at line 69 of file comment.php.