Elgg  Version 4.3
Variables
mute.php File Reference

Go to the source code of this file.

Variables

 $entity_guid = (int) get_input('guid')
 Handle muting 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->muteNotifications($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 mute.php.

$entity = get_entity($entity_guid)

Definition at line 12 of file mute.php.

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

Handle muting notifications about an entity.

Definition at line 6 of file mute.php.

$forward_url = get_input('forward_url')

Definition at line 9 of file mute.php.

$message = ''

Definition at line 34 of file mute.php.

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

Definition at line 10 of file mute.php.

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

Definition at line 28 of file mute.php.

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

Definition at line 17 of file mute.php.

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

Definition at line 7 of file mute.php.