Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
Variables
comments.php File Reference

Go to the source code of this file.

Variables

 $show_add_form = elgg_extract('show_add_form', $vars, true)
 List comments with optional add form. More...
 
 $full_view = elgg_extract('full_view', $vars, true)
 
 $limit = elgg_extract('limit', $vars, get_input('limit', 0))
 
if(!$limit) $attr
 
if(!$limit) $attr ['class'][] = 'elgg-comments'
 
 $content
 
 if ($show_add_form)
 

Variable Documentation

if (!$limit) $attr
Initial value:
= [
'id' => elgg_extract('id', $vars, 'comments')
$vars['entity']
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:1310

Definition at line 22 of file comments.php.

if (!$limit) $attr['class'][] = 'elgg-comments'

Definition at line 26 of file comments.php.

Initial value:
'type' => 'object',
'subtype' => 'comment',
'container_guid' => $vars['entity']->guid,
'reverse_order_by' => true,
'full_view' => true,
'limit' => $limit,
'preload_owners' => true,
'distinct' => false,
'url_fragment' => $attr['id'],
))
$vars['entity']
$limit
Definition: comments.php:17
elgg_list_entities(array $options=array(), $getter= 'elgg_get_entities', $viewer= 'elgg_view_entity_list')
Returns a string of rendered entities.
Definition: entities.php:382
if(!$limit) $attr
Definition: comments.php:22

Definition at line 31 of file comments.php.

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

Definition at line 16 of file comments.php.

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

Definition at line 17 of file comments.php.

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

List comments with optional add form.

$vars['entity'] ElggEntity $vars['show_add_form'] Display add form or not $vars['id'] Optional id for the div $vars['class'] Optional additional class for the div $vars['limit'] Optional limit value (default is 25)

Definition at line 15 of file comments.php.

if($show_add_form)

Definition at line 43 of file comments.php.