Elgg  Version 2.3
Variables
edit.php File Reference

Go to the source code of this file.

Variables

 $guid = elgg_extract('guid', $vars)
 
if(! $guid) $comment = get_entity($guid)
 
if(!($comment instanceof \ElggComment)||! $comment->canEdit()) $target = $comment->getContainerEntity()
 
if(!($target instanceof \ElggEntity)) $title = elgg_echo('generic_comments:edit')
 
 $params
 
 $content = elgg_view_form('comment/save', null, $params)
 
 $body = elgg_view_layout('content', $params)
 

Variable Documentation

◆ $body

$body = elgg_view_layout('content', $params)

Definition at line 38 of file edit.php.

◆ $comment

if (! $guid) $comment = get_entity($guid)

Definition at line 11 of file edit.php.

◆ $content

$content = elgg_view_form('comment/save', null, $params)

Definition at line 31 of file edit.php.

◆ $guid

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

Definition at line 3 of file edit.php.

◆ $params

$params
Initial value:
= array(
'entity' => $target,
'comment' => $comment,
)
if(!($comment instanceof \ElggComment)||! $comment->canEdit()) $target
Definition: edit.php:17
if(! $guid) $comment
Definition: edit.php:11

Definition at line 27 of file edit.php.

◆ $target

if (!( $comment instanceof \ElggComment)||! $comment->canEdit()) $target = $comment->getContainerEntity()

Definition at line 17 of file edit.php.

◆ $title

if (!( $target instanceof \ElggEntity)) $title = elgg_echo('generic_comments:edit')

Definition at line 23 of file edit.php.