Go to the source code of this file.
if (!$entity instanceof\ElggEntity) if (!$entity->canComment()) $comment = new \ElggComment() |
$comment_guid = (int) get_input('comment_guid', 0, false) |
$entity_guid = (int) get_input('entity_guid', 0, false) |
Action for adding and editing comments.
Definition at line 6 of file save.php.
$forward = $comment->getURL() |
if (!empty($_SERVER['HTTP_REFERER'])) $result |
Initial value:
Definition at line 87 of file save.php.
if (!$comment->save()) if ($comment->getLevel()===1) $success_message = elgg_echo('generic_comment:posted') |
$comment access_id = $entity->access_id |
if ($entity instanceof\ElggComment) $comment container_guid = $entity->guid |
$comment description = $comment_text |
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.