Elgg  Version master
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

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

Definition at line 22 of file mute.php.

◆ $content

$content
Initial value:
return elgg_view_form('notifications/mute', [], [
'entity' => $entity,
'recipient' => $recipient,
'actor' => $actor,
]);
})
$entity
Definition: mute.php:12
$entity_guid
Handle muting notifications about an entity.
Definition: mute.php:6
$recipient
Definition: mute.php:8
const ELGG_IGNORE_ACCESS
elgg_call() flags
Definition: constants.php:121
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
get_entity(int $guid)
Loads and returns an entity object from a guid.
Definition: entities.php:70
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

Definition at line 28 of file mute.php.

◆ $entity_guid

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

Definition at line 12 of file mute.php.

◆ $recipient

$recipient = get_user($recipient_guid)

Definition at line 20 of file mute.php.

◆ $recipient_guid

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

Definition at line 17 of file mute.php.

◆ if

if(empty($content)) ( empty( $content)  )

Definition at line 39 of file mute.php.