27 parent::initializeAttributes();
29 $this->attributes[
'type'] =
'annotation';
54 elgg_deprecated_notice(
'Passing an ID to constructor is deprecated. Use elgg_get_annotation_from_id()', 1.9);
77 throw new \IOException(
"Unable to save new " . get_class());
88 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.
_elgg_delete_river(array $options=[])
Alias of elgg_delete_river() that doesn't raise notices.
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.
elgg_deprecated_notice($msg, $dep_version, $backtrace_level=1)
Log a notice about deprecated use of a function, view, etc.
_elgg_services(\Elgg\Di\ServiceProvider $services=null)
Get the global service provider.
__construct($row=null)
Construct a new annotation object.
getObjectFromID($id)
For a given ID, return the object associated with it.
$user_guid
Avatar remove action.
if(!$collection_name) $id
enable()
Enable the annotation.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use