Elgg  Version master
Variables
body.php File Reference

Go to the source code of this file.

Variables

 $subject = elgg_extract('subject', $vars)
 HTML body of an email. More...
 
 $body = elgg_extract('body', $vars)
 
 $body_title = !empty($subject) ? elgg_view_title($subject) : ''
 
 $site_link = elgg_view_entity_url(elgg_get_site_entity())
 
 $email_params = []
 
 $email = elgg_extract('email', $vars)
 
if($email instanceof \Elgg\Email$object = elgg_extract('object', $email_params)
 
 $recipient = elgg_extract('recipient', $email_params)
 
 $add_mute_link = (bool) elgg_extract('add_mute_link', $email_params, true)
 
 if ( $add_mute_link &&$object instanceof \ElggEntity &&$recipient instanceof \ElggUser) = $body_title
 

Variable Documentation

◆ $add_mute_link

$add_mute_link = (bool) elgg_extract('add_mute_link', $email_params, true)

Definition at line 26 of file body.php.

◆ $body

$body = elgg_extract('body', $vars)

Definition at line 12 of file body.php.

◆ $body_title

$body_title = !empty($subject) ? elgg_view_title($subject) : ''

Definition at line 14 of file body.php.

◆ $email

$email = elgg_extract('email', $vars)

Definition at line 19 of file body.php.

◆ $email_params

$email_params = []

Definition at line 18 of file body.php.

◆ $object

if ( $email instanceof \Elgg\Email) $object = elgg_extract('object', $email_params)
Examples
/root/Elgg/engine/lib/views.php.

Definition at line 24 of file body.php.

◆ $recipient

$recipient = elgg_extract('recipient', $email_params)

Definition at line 25 of file body.php.

◆ $site_link

Definition at line 16 of file body.php.

◆ $subject

$subject = elgg_extract('subject', $vars)

HTML body of an email.

@uses $vars['subject'] the subject of the email @uses $vars['body'] the body/message of the email @uses $vars['language'] the language of the recipient @uses $vars['email'] the \Elgg\Email which is being processed

Definition at line 11 of file body.php.

◆ if

if($add_mute_link && $object instanceof \ElggEntity && $recipient instanceof \ElggUser) (   $add_mute_link && $object instanceof \ElggEntity && $recipient instanceof \) = $body_title

Definition at line 28 of file body.php.