24 parent::initializeAttributes();
26 $this->attributes[
'type'] =
'annotation';
42 if (
$row instanceof stdClass) {
51 elgg_deprecated_notice(
'Passing an ID to constructor is deprecated. Use elgg_get_annotation_from_id()', 1.9);
74 throw new IOException(
"Unable to save new " . get_class());
85 public function delete() {
disable()
Disable the annotation.
save()
Save this instance.
$annotation
Elgg default annotation view.
create_annotation($entity_guid, $name, $value, $value_type= '', $owner_guid=0, $access_id=ACCESS_PRIVATE)
Create a new annotation.
getEntity()
Get the entity this describes.
update_annotation($annotation_id, $name, $value, $value_type, $owner_guid, $access_id)
Update an annotation.
initializeAttributes()
(non-PHPdoc)
canEdit($user_guid=0)
Determines whether or not the user can edit this annotation.
elgg_get_annotation_from_id($id)
Get a specific annotation by its id.
get_user($guid)
Get a user object from a GUID.
elgg_trigger_plugin_hook($hook, $type, $params=null, $returnvalue=null)
Trigger a Plugin Hook and run all handler callbacks registered to that hook:type. ...
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Sends a notice about deprecated use of a function, view, etc.
getOwnerGUID()
Get the GUID of the extender's owner entity.
elgg_delete_river(array $options=array())
Delete river items.
__construct($row=null)
Construct a new annotation object.
getObjectFromID($id)
For a given ID, return the object associated with it.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
$user_guid
Avatar remove action.
if(!$collection_name) $id
enable()
Enable the annotation.
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.