Public Member Functions | |
| __construct ($id=null) | |
| Construct a new annotation object. | |
| save () | |
| Save this instance. | |
| delete () | |
| Delete the annotation. | |
| disable () | |
| Disable the annotation. | |
| enable () | |
| Enable the annotation. | |
| getURL () | |
| Get a url for this annotation. | |
| getObjectFromID ($id) | |
| For a given ID, return the object associated with it. | |
Protected Member Functions | |
| initializeAttributes () | |
| (non-PHPdoc) | |
Elgg Annotations.
Annotations allow you to attach bits of information to entities. They are essentially the same as metadata, but with additional helper functions.
Definition at line 18 of file ElggAnnotation.php.
| ElggAnnotation::__construct | ( | $ | id = null |
) |
Construct a new annotation object.
| mixed | $id The annotation ID or a database row as stdClass object |
Definition at line 38 of file ElggAnnotation.php.
| ElggAnnotation::delete | ( | ) |
Delete the annotation.
Reimplemented from ElggData.
Definition at line 85 of file ElggAnnotation.php.
| ElggAnnotation::disable | ( | ) |
| ElggAnnotation::enable | ( | ) |
| ElggAnnotation::getObjectFromID | ( | $ | id | ) |
For a given ID, return the object associated with it.
This is used by the river functionality primarily. This is useful for checking access permissions etc on objects.
| int | $id An annotation ID. |
Implements Loggable.
Definition at line 130 of file ElggAnnotation.php.
| ElggAnnotation::getURL | ( | ) |
Get a url for this annotation.
Reimplemented from ElggData.
Definition at line 115 of file ElggAnnotation.php.
| ElggAnnotation::initializeAttributes | ( | ) | [protected] |
(non-PHPdoc)
Reimplemented from ElggExtender.
Definition at line 27 of file ElggAnnotation.php.
| ElggAnnotation::save | ( | ) |
Save this instance.
| IOException |
Reimplemented from ElggData.
Definition at line 65 of file ElggAnnotation.php.
1.6.3