Elgg  Version 3.0
comments.php File Reference

Go to the source code of this file.


 $entity = elgg_extract('entity', $vars)
if(!$entity instanceof\ElggEntity$show_add_form = elgg_extract('show_add_form', $vars, true)
 $latest_first = elgg_comments_are_latest_first($entity)
 $limit = elgg_extract('limit', $vars, get_input('limit', 0))
if(!$limit) $module_vars
if(!$limit) $options
if(!$limit) $show_guid = (int) elgg_extract('show_guid', $vars)
if($show_guid &&$limit) $comments_list = elgg_list_entities($options)
 $content = ''
 if (empty($content))

Variable Documentation

if ($show_guid &&$limit) $comments_list = elgg_list_entities($options)

Definition at line 64 of file comments.php.

if ($show_add_form &&$entity->canComment()) $content = ''

Definition at line 66 of file comments.php.

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

Definition at line 15 of file comments.php.

$latest_first = elgg_comments_are_latest_first($entity)

Definition at line 22 of file comments.php.

$limit = elgg_extract('limit', $vars, get_input('limit', 0))

Definition at line 24 of file comments.php.

if (!$limit) $module_vars
Initial value:
= [
'id' => elgg_extract('id', $vars, 'comments')
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
Definition: save.php:11

Definition at line 29 of file comments.php.

if (!$limit) $options
Initial value:
= [
'type' => 'object'

Definition at line 34 of file comments.php.

if (!$entity instanceof\ElggEntity) $show_add_form = elgg_extract('show_add_form', $vars, true)

Definition at line 20 of file comments.php.

if (!$limit) $show_guid = (int) elgg_extract('show_guid', $vars)

Definition at line 46 of file comments.php.


Definition at line 92 of file comments.php.