Go to the source code of this file.
◆ $comment
◆ $comment_guid
$comment_guid = (int) get_input('comment_guid', 0, false) |
◆ $comment_text
◆ $entity_guid
$entity_guid = (int) get_input('entity_guid', 0, false) |
Action for adding and editing comments.
Definition at line 6 of file save.php.
◆ $forward
$forward = $comment->getURL() |
◆ $result
if (!empty( $_SERVER[ 'HTTP_REFERER'])) $result |
Initial value:= [
]
elgg_view_entity(\ElggEntity $entity, array $vars=[])
Returns a string of a rendered entity.
Definition at line 87 of file save.php.
◆ $success_message
if (! $comment->save()) if ( $comment->getLevel()===1) $success_message = elgg_echo('generic_comment:posted') |
◆ access_id
$comment access_id = $entity->access_id |
◆ container_guid
if ( $entity instanceof \ElggComment) $comment container_guid = $entity->guid |
◆ description
$comment description = $comment_text |
◆ else
if (empty( $comment_text)) if ( $comment_guid) else |
Initial value:{
get_entity(int $guid)
Loads and returns an entity object from a guid.
Definition at line 31 of file save.php.