Elgg  Version 3.0
Namespaces | Variables
generic_comment.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Configuration exception.
 

Variables

 $annotation = elgg_extract('annotation', $vars)
 
if(!$annotation instanceof ElggAnnotation$poster = $annotation->getOwnerEntity()
 
 $poster_name = htmlspecialchars($poster->getDisplayName(), ENT_NOQUOTES, 'UTF-8')
 
 $pubdate = date('r', $annotation->getTimeCreated())
 
 $permalink = $annotation->getURL()
 
 $title = elgg_echo('generic_comment:title', [$poster_name])
 
 $creator = elgg_view('page/components/creator', ['entity' => $annotation])
 
 $extensions = elgg_view('extensions/item', $vars)
 
 $item
 

Variable Documentation

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

Definition at line 9 of file generic_comment.php.

$creator = elgg_view('page/components/creator', ['entity' => $annotation])

Definition at line 21 of file generic_comment.php.

$extensions = elgg_view('extensions/item', $vars)

Definition at line 22 of file generic_comment.php.

$item
Initial value:
= <<<__HTML
<item>
<guid isPermaLink='true'>$permalink</guid>
<pubDate>$pubdate</pubDate>
<link>$permalink</link>
<title><![CDATA[$title]]></title>
<description><![CDATA[{$annotation->value}]]></description>
</item>
__HTML
$creator
$extensions
$permalink
if(!$site) if(!($site instanceof ElggSite)) $site description
$annotation
$pubdate

Definition at line 24 of file generic_comment.php.

$permalink = $annotation->getURL()

Definition at line 17 of file generic_comment.php.

if (!$annotation instanceof ElggAnnotation) $poster = $annotation->getOwnerEntity()

Definition at line 14 of file generic_comment.php.

$poster_name = htmlspecialchars($poster->getDisplayName(), ENT_NOQUOTES, 'UTF-8')

Definition at line 15 of file generic_comment.php.

$pubdate = date('r', $annotation->getTimeCreated())

Definition at line 16 of file generic_comment.php.

$title = elgg_echo('generic_comment:title', [$poster_name])

Definition at line 19 of file generic_comment.php.