47 $this->hooks = $hooks;
48 $this->entities = $entities;
79 'owner_guid' => $entity->owner_guid,
80 'container_guid' => $entity->container_guid,
92 if ($entity->guid ==
$user->guid) {
160 return $this->hooks->trigger(
'permissions_check:delete',
'river',
$params,
$return);
180 if (!$entity->guid) {
252 return $this->hooks->trigger(
'permissions_check',
'annotation',
$params,
$result);
290 $logic_check = $this->hooks->trigger(
'container_logic_check',
$type,
$params);
292 if ($logic_check ===
false) {
353 if ($annotation_name === null || $annotation_name ===
false) {
355 $annotation_name =
'';
356 } elseif (!is_string($annotation_name)) {
371 'annotation_name' => $annotation_name,
374 if (!empty($annotation_name)) {
canDeleteRiverItem(ElggRiverItem $item, $user_guid=0)
Can a user delete this river item?
$annotation
Elgg default annotation view.
canEditMetadata(ElggEntity $entity, $user_guid=0, ElggMetadata $metadata=null)
Can a user edit metadata on this entity?
canAnnotate(ElggEntity $entity, $user_guid=0, $annotation_name= '')
Can a user annotate an entity?
__construct(PluginHooksService $hooks, EntityTable $entities, ElggSession $session)
Constructor.
canEdit($user_guid=0)
Can a user edit this entity?
canDelete(ElggEntity $entity, $user_guid=0)
Can a user delete this entity?
Exception indicating a user could not be looked up for a permissions check.
canComment(ElggEntity $entity, $user_guid=0, $default=null)
Can a user comment on an entity?
canEditAnnotation(ElggEntity $entity, $user_guid=0, ElggAnnotation $annotation=null)
Determines whether or not the user can edit this annotation.
getType()
Returns the entity type.
getOriginalAttributes()
Get the original values of attribute(s) that have been modified since the entity was persisted...
canWriteToContainer(ElggEntity $entity, $user_guid=0, $type= 'all', $subtype= 'all')
Can a user add an entity to this container.
canEdit(ElggEntity $entity, $user_guid=0)
Can a user edit this entity?
$user_guid
Avatar remove action.
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