15 parent::initializeAttributes();
17 $this->attributes[
'type'] =
'annotation';
40 public function save(): bool {
45 if (!isset($this->owner_guid)) {
46 $this->owner_guid =
_elgg_services()->session_manager->getLoggedInUserGuid();
53 if (!isset($this->entity_guid)) {
74 public function delete():
bool {
__construct(stdClass $row=null)
Constructor.
getObjectFromID(int $id)
{}
save()
Save this instance and returns an annotation ID.
getEntity()
Get the entity this describes.
canEdit(int $user_guid=0)
Determines whether or not the user can edit this annotation.
get_entity(int $guid)
Loads and returns an entity object from a guid.
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
elgg_get_annotation_from_id(int $id)
Elgg annotations Functions to manage object annotations.
_elgg_services()
Get the global service provider.
$id
Generic annotation delete action.