Elgg
Version 2.3
|
Go to the source code of this file.
Namespaces | |
Elgg\Core | |
Activate a plugin or plugins. | |
Variables | |
$entity_guid = (int) get_input('entity_guid', 0, false) | |
$comment_guid = (int) get_input('comment_guid', 0, false) | |
$comment_text = get_input('generic_comment') | |
if(empty($comment_text)) if($comment_guid) | else |
if(!$entity) | $user = elgg_get_logged_in_user_entity() |
$comment = new ElggComment() | |
$comment | description = $comment_text |
$comment | owner_guid = $user->getGUID() |
$comment | container_guid = $entity->getGUID() |
$comment | access_id = $entity->access_id |
$guid = $comment->save() | |
$comment = new ElggComment() |