Elgg  Version 6.0
Variables
unmute.php File Reference

Go to the source code of this file.

Variables

 $entity_guid = (int) get_input('guid')
 Handle unmuting notifications about an entity. More...
 
 $user_guid = (int) get_input('user_guid', elgg_get_logged_in_user_guid())
 
 $forward_url = get_input('forward_url')
 
 $show_success = (bool) get_input('show_success', true)
 
 $entity = get_entity($entity_guid)
 
if(!$entity instanceof\ElggEntity) $user = get_user($user_guid)
 
if(!$user instanceof\ElggUser||!$user->canEdit()) $display_name = $entity->getDisplayName() ?: elgg_echo('item')
 
if(!$entity->unmuteNotifications($user->guid)) $success_keys
 
 $message = ''
 

Variable Documentation

if (!$user instanceof\ElggUser||!$user->canEdit()) $display_name = $entity->getDisplayName() ?: elgg_echo('item')

Definition at line 22 of file unmute.php.

$entity = get_entity($entity_guid)

Definition at line 12 of file unmute.php.

$entity_guid = (int) get_input('guid')

Handle unmuting notifications about an entity.

Definition at line 6 of file unmute.php.

$forward_url = get_input('forward_url')

Definition at line 9 of file unmute.php.

$message = ''

Definition at line 34 of file unmute.php.

$show_success = (bool) get_input('show_success', true)

Definition at line 10 of file unmute.php.

if (!$entity->unmuteNotifications($user->guid)) $success_keys
Initial value:
= [
"entity:unmute:{$entity->type}:{$entity->subtype}:success",
"entity:unmute:{$entity->type}:success",
'entity:unmute:success',
]

Definition at line 28 of file unmute.php.

if (!$entity instanceof\ElggEntity) $user = get_user($user_guid)

Definition at line 17 of file unmute.php.

$user_guid = (int) get_input('user_guid', elgg_get_logged_in_user_guid())

Definition at line 7 of file unmute.php.