Elgg  Version master
Variables
timed_muting.php File Reference

Go to the source code of this file.

Variables

 $user = elgg_extract('entity', $vars)
 Set a time window where you don't wish to receive notifications. More...
 
if(!$user instanceof\ElggUser) $start = $user->timed_muting_start
 
 $end = $user->timed_muting_end
 
 $fields
 
 if (!empty($start)&&!empty($end)&&$start< time()&&$end > time())
 

Variable Documentation

$end = $user->timed_muting_end

Definition at line 14 of file timed_muting.php.

$fields
Initial value:
= [
[
'#type' => 'fieldset',
'#help' => elgg_echo('usersettings:notifications:timed_muting:help')
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17

Definition at line 16 of file timed_muting.php.

if (!$user instanceof\ElggUser) $start = $user->timed_muting_start

Definition at line 13 of file timed_muting.php.

$user = elgg_extract('entity', $vars)

Set a time window where you don't wish to receive notifications.

$vars['entity'] the user to set the setings for

Definition at line 8 of file timed_muting.php.

if(!empty($start)&&!empty($end)&&$start< time()&&$end > time())
Initial value:
=> 'horizontal',
'fields' => [
[
'#type' => 'date',
'#label' => elgg_echo('usersettings:notifications:timed_muting:start'),
'name' => 'timed_muting_start',
'value' => $start,
'timestamp' => true,
],
[
'#type' => 'date',
'#label' => elgg_echo('usersettings:notifications:timed_muting:end'),
'name' => 'timed_muting_end',
'value' => $end,
'timestamp' => true,
],
],
],
]
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
if(!$user instanceof\ElggUser) $start
$end

Definition at line 40 of file timed_muting.php.