Elgg  Version 6.1
Variables
mute.php File Reference

Go to the source code of this file.

Variables

 $entity_guid = (int) elgg_extract('entity_guid', $vars)
 
if(!elgg_entity_exists($entity_guid)) $recipient_guid = (int) elgg_extract('recipient_guid', $vars)
 
 $recipient = get_user($recipient_guid)
 
 $actor_guid = (int) get_input('actor_guid', elgg_extract('actor_guid', $vars))
 
 $content
 
 if (empty($content))
 

Variable Documentation

$actor_guid = (int) get_input('actor_guid', elgg_extract('actor_guid', $vars))

Definition at line 22 of file mute.php.

$content
Initial value:
return elgg_view_form('notifications/mute', [], [
'entity' => $entity,
'recipient' => $recipient,
'actor' => $actor,
]);
})
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
Definition: elgglib.php:306
elgg_view_form(string $action, array $form_vars=[], array $body_vars=[])
Definition: views.php:1033
if(($owner instanceof\ElggGroup||$owner instanceof\ElggUser)&&!in_array($owner->guid, $mute_guids)) $actor
Definition: mute.php:78
$actor_guid
Definition: mute.php:22
$entity
Definition: mute.php:12
$entity_guid
Handle muting notifications about an entity.
Definition: mute.php:6
const ELGG_IGNORE_ACCESS
elgg_call() flags
Definition: constants.php:121
get_entity(int $guid)
Loads and returns an entity object from a guid.
Definition: entities.php:70
$recipient
Definition: mute.php:8

Definition at line 28 of file mute.php.

$entity_guid = (int) elgg_extract('entity_guid', $vars)

Definition at line 12 of file mute.php.

$recipient = get_user($recipient_guid)

Definition at line 20 of file mute.php.

if (!elgg_entity_exists($entity_guid)) $recipient_guid = (int) elgg_extract('recipient_guid', $vars)

Definition at line 17 of file mute.php.

if(empty($content))

Definition at line 39 of file mute.php.