Elgg  Version 6.2
Variables
responses.php File Reference

Go to the source code of this file.

Variables

 $responses = elgg_extract('responses', $vars)
 
if(isset($responses)) $item = elgg_extract('item', $vars)
 
if(! $item instanceof ElggRiverItem$object = $item->getObjectEntity()
 
if(!empty($item->annotation_id)||! $object instanceof ElggEntity|| $object instanceof ElggComment) if(! $object->hasCapability('commentable')) $comment_count = $object->countComments()
 
if($comment_count) if(! $object->canComment()) $form_vars = ['id' => "comments-add-{$object->guid}-{$item->id}", 'class' => 'hidden']
 
 $body_vars = ['entity' => $object, 'inline' => true]
 

Variable Documentation

◆ $body_vars

$body_vars = ['entity' => $object, 'inline' => true]

Definition at line 73 of file responses.php.

◆ $comment_count

if (!empty( $item->annotation_id)||! $object instanceof ElggEntity||$object instanceof ElggComment) if (! $object->hasCapability( 'commentable')) $comment_count = $object->countComments()

Definition at line 34 of file responses.php.

◆ $form_vars

if ( $comment_count) if (! $object->canComment()) $form_vars = ['id' => "comments-add-{$object->guid}-{$item->id}", 'class' => 'hidden']

Definition at line 72 of file responses.php.

◆ $item

if (isset( $responses)) $item = elgg_extract('item', $vars)

Definition at line 18 of file responses.php.

◆ $object

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

Definition at line 23 of file responses.php.

◆ $responses

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

Definition at line 12 of file responses.php.