Elgg  Version 2.3
Namespaces | Variables
save.php File Reference

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()
 

Variable Documentation

$comment = new ElggComment()

Definition at line 56 of file save.php.

$comment_guid = (int) get_input('comment_guid', 0, false)

Definition at line 10 of file save.php.

$comment_text = get_input('generic_comment')

Definition at line 11 of file save.php.

$entity_guid = (int) get_input('entity_guid', 0, false)

Definition at line 9 of file save.php.

$guid = $comment->save()

Definition at line 61 of file save.php.

Definition at line 54 of file save.php.

$comment access_id = $entity->access_id

Definition at line 60 of file save.php.

number container_guid = $entity->getGUID()

Definition at line 59 of file save.php.

$comment description = $comment_text

Definition at line 57 of file save.php.

if (empty($comment_text)) if ($comment_guid) else
Initial value:
{
$entity_guid
Definition: save.php:9
if(!elgg_is_logged_in()) $entity
Definition: save.php:16
get_entity($guid)
Loads and returns an entity object from a guid.
Definition: entities.php:204

Definition at line 46 of file save.php.

number owner_guid = $user->getGUID()

Definition at line 58 of file save.php.