40 if (in_array(
$key, static::INTEGER_ATTR_NAMES)) {
168 public function delete() {
184 $object->subject_guid = $this->subject_guid;
186 $object->object_guid = $this->object_guid;
187 $object->annotation_id = $this->annotation_id;
189 $object->action = $this->action_type;
getType()
Get the type of the object.
$params
Saves global plugin settings.
toObject()
Get a plain old object copy for public consumption.
if(!$user||!$user->canDelete()) $name
getSubjectEntity()
Get the subject of this river item.
getTimePosted()
Get the time this activity was posted.
getSubtype()
Get the subtype of the object.
save()
Save the river item to the database.
if(!empty($avatar)&&!$avatar->isValid()) elseif(empty($avatar)) if(!$owner->saveIconFromUploadedFile('avatar')) if(!elgg_trigger_event('profileiconupdate', $owner->type, $owner)) $view
getAnnotation()
Get the Annotation for this river item.
__construct(\stdClass $row=null)
Construct a river item object.
canDelete($user_guid=0)
Can a user delete this river item?
__set(string $name, $value)
{}
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
if($email instanceof\Elgg\Email) $object
elgg_get_annotation_from_id(int $id)
Elgg annotations Functions to manage object annotations.
getView()
Get the view used to display this river item.
_elgg_services()
Get the global service provider.
$id
Generic annotation delete action.
getTargetEntity()
Get the target of this river item.
get_entity($guid)
Loads and returns an entity object from a guid.
getObjectEntity()
Get the object of this river item.