18 "notifications:mute:{$entity->type}:{$entity->subtype}",
19 "notifications:mute:{$entity->type}",
20 "notifications:mute:{$default_postfix}",
34 $commented_entity =
$entity->getContainerEntity();
40 'name' =>
"mute[{$commented_entity->guid}]",
41 'value' => $commented_entity->hasMutedNotifications(
$recipient->guid),
49 'name' =>
"mute[{$entity->guid}]",
61 'name' =>
"mute[{$container->guid}]",
73 'name' =>
"mute[{$owner->guid}]",
85 'name' =>
"mute[{$actor->guid}]",
97 'name' =>
'entity_guid',
103 'name' =>
'recipient_guid',
109 'entity_guid' =>
$entity->guid,
114 'name' =>
'hmac_token',
115 'value' =>
$hmac->getToken(),
119 'value' =>
elgg_echo(
'notifications:mute:description'),
if(empty($entity_guid)||empty($recipient)||empty($muted_settings)||empty($hmac_token)) $hmac
getDisplayName()
Get the entity's display name.
getDisplayName()
{Get the entity's display name.string The title or name of this entity.}
if($item instanceof \ElggEntity) elseif($item instanceof \ElggRiverItem) elseif($item instanceof \ElggRelationship) elseif(is_callable([ $item, 'getType']))
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_language_key_exists(string $key, string $language='en')
Check if a given language key exists.
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
elgg_build_hmac($data)
Get an HMAC token builder/validator object.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
elgg_set_form_footer(string $footer='')
Sets form footer and defers its rendering until the form view and extensions have been rendered.
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
if($container instanceof ElggGroup && $container->guid !=elgg_get_page_owner_guid()) $key