50 if (!array_key_exists(
$key, $this->attributes)) {
54 if (in_array(
$key, static::INTEGER_ATTR_NAMES)) {
68 if (!array_key_exists($name, $this->attributes)) {
72 if (in_array($name, static::INTEGER_ATTR_NAMES)) {
92 if (array_key_exists(
$name, $this->attributes)) {
93 return $this->attributes[
$name];
103 return isset($this->attributes[
$name]);
110 if (!array_key_exists(
$name, $this->attributes)) {
114 $this->attributes[
$name] = null;
123 $this->attributes[
'id'] = null;
124 $this->attributes[
'action_type'] = null;
125 $this->attributes[
'view'] = null;
126 $this->attributes[
'subject_guid'] = null;
127 $this->attributes[
'object_guid'] = null;
128 $this->attributes[
'target_guid'] = null;
129 $this->attributes[
'annotation_id'] = null;
130 $this->attributes[
'posted'] = null;
131 $this->attributes[
'last_action'] = null;
140 return $this->subject_guid ?
get_entity($this->subject_guid) : null;
149 return $this->object_guid ?
get_entity($this->object_guid) : null;
158 return $this->target_guid ?
get_entity($this->target_guid) : null;
196 $this->last_action =
_elgg_services()->riverTable->updateLastAction($this, $last_action);
198 return $this->last_action;
244 public function delete():
bool {
260 $object->subject_guid = $this->subject_guid;
262 $object->object_guid = $this->object_guid;
263 $object->annotation_id = $this->annotation_id;
264 $object->action = $this->action_type;
267 $object->last_action = date(
'c', $this->last_action);
getType()
Get the type of the object.
$params
Saves global plugin settings.
initializeAttributes()
Initialize the attributes array.
toObject()
Get a plain old object copy for public consumption.
if(!$user||!$user->canDelete()) $name
getSubjectEntity()
Get the subject of this river item.
updateLastAction(int $last_action=null)
Update the last_action column in the river table.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
getTimePosted()
Get the time this activity was posted.
getSubtype()
Get the subtype of the object.
save()
Save the river item to the database.
canDelete(int $user_guid=0)
Can a user delete this river item?
get_entity(int $guid)
Loads and returns an entity object from a guid.
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.
__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.
getObjectEntity()
Get the object of this river item.