12 use InvalidArgumentException;
47 $this->hooks = $hooks;
48 $this->entities = $entities;
79 'owner_guid' =>
$entity->owner_guid,
80 'container_guid' =>
$entity->container_guid,
81 ],
$entity->getOriginalAttributes()
160 return $this->hooks->trigger(
'permissions_check:delete',
'river',
$params,
$return);
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)) {
357 throw new InvalidArgumentException(__METHOD__ .
' expects \$annotation_name to be a string');
371 'annotation_name' => $annotation_name,
374 if (!empty($annotation_name)) {
$user_guid
Avatar remove action.
Exception indicating a user could not be looked up for a permissions check.
canWriteToContainer(ElggEntity $entity, $user_guid=0, $type='all', $subtype='all')
Can a user add an entity to this container.
canAnnotate(ElggEntity $entity, $user_guid=0, $annotation_name='')
Can a user annotate an entity?
canEditMetadata(ElggEntity $entity, $user_guid=0, ElggMetadata $metadata=null)
Can a user edit metadata on this entity?
canComment(ElggEntity $entity, $user_guid=0, $default=null)
Can a user comment on an entity?
__construct(PluginHooksService $hooks, EntityTable $entities, ElggSession $session)
Constructor.
canEditAnnotation(ElggEntity $entity, $user_guid=0, ElggAnnotation $annotation=null)
Determines whether or not the user can edit this annotation.
canEdit(ElggEntity $entity, $user_guid=0)
Can a user edit this entity?
canDelete(ElggEntity $entity, $user_guid=0)
Can a user delete this entity?
canDeleteRiverItem(ElggRiverItem $item, $user_guid=0)
Can a user delete this river item?
$annotation
Elgg default annotation view.
if(! $display_name) $type