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)
 Offer a page where a user can mute notifications about an. More...
 
if(!elgg_entity_exists($entity_guid)) $recipient_guid = (int) elgg_extract('recipient_guid', $vars)
 
 $recipient = elgg_entity_gatekeeper($recipient_guid, 'user')
 
 $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 19 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:296
get_entity(int $guid)
Loads and returns an entity object from a guid.
Definition: entities.php:68
elgg_view_form(string $action, array $form_vars=[], array $body_vars=[])
Definition: views.php:1036
if(($owner instanceof \ElggGroup|| $owner instanceof \ElggUser) &&!in_array($owner->guid, $mute_guids)) $actor
Definition: mute.php:78
$actor_guid
Definition: mute.php:19

Definition at line 25 of file mute.php.

◆ $entity_guid

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

Offer a page where a user can mute notifications about an.

  • entity
  • container
  • owner
  • actor

Definition at line 10 of file mute.php.

◆ $recipient

$recipient = elgg_entity_gatekeeper($recipient_guid, 'user')

Definition at line 17 of file mute.php.

◆ $recipient_guid

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

Definition at line 15 of file mute.php.

◆ if

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

Definition at line 36 of file mute.php.