Elgg  Version 1.9
Variables
basic.php File Reference

Go to the source code of this file.

Variables

 $rating = get_input('rating')
 Demonstrates adding an annotation through an action. More...
 
 $guid = get_input('guid')
 
 $entity = get_entity($guid)
 

Variable Documentation

$entity = get_entity($guid)

Definition at line 13 of file basic.php.

$guid = get_input('guid')

Definition at line 11 of file basic.php.

$rating = get_input('rating')

Demonstrates adding an annotation through an action.

This action adds a rating annotation to an entity. If this was coming from a five-star rating tool, the rating would be a number between 0 and 5. The GUID of the entity being rating is also submitted to the action.

Definition at line 10 of file basic.php.