Elgg  Version 6.2
Variables
records.php File Reference

Go to the source code of this file.

Variables

 $user = elgg_extract('entity', $vars)
 Show the different notification settings / preferences for the given user. More...
 
if(! $user instanceof \ElggUser$methods = elgg_get_notification_methods()
 
if(empty($methods)) $params = $vars
 
 $params ['description'] = elgg_echo('usersettings:notifications:default:description')
 
 $params ['purpose'] = 'default'
 
 $params ['description'] = elgg_echo('usersettings:notifications:content_create:description')
 
 $params ['purpose'] = 'content_create'
 
 $params ['description'] = elgg_echo('usersettings:notifications:create_comment:description')
 
 $params ['purpose'] = 'create_comment'
 
 $params ['description'] = elgg_echo('usersettings:notifications:mentions:description')
 
 $params ['purpose'] = 'mentions'
 

Variable Documentation

◆ $methods

if (! $user instanceof \ElggUser) $methods = elgg_get_notification_methods()

Definition at line 15 of file records.php.

◆ $params [1/9]

$params = $vars

Definition at line 21 of file records.php.

◆ $params [2/9]

$params[ 'description'] = elgg_echo('usersettings:notifications:default:description')

Definition at line 22 of file records.php.

◆ $params [3/9]

$params[ 'description'] = elgg_echo('usersettings:notifications:content_create:description')

Definition at line 29 of file records.php.

◆ $params [4/9]

$params[ 'description'] = elgg_echo('usersettings:notifications:create_comment:description')

Definition at line 36 of file records.php.

◆ $params [5/9]

$params[ 'description'] = elgg_echo('usersettings:notifications:mentions:description')

Definition at line 43 of file records.php.

◆ $params [6/9]

$params[ 'purpose'] = 'default'

Definition at line 23 of file records.php.

◆ $params [7/9]

$params[ 'purpose'] = 'content_create'

Definition at line 30 of file records.php.

◆ $params [8/9]

$params[ 'purpose'] = 'create_comment'

Definition at line 37 of file records.php.

◆ $params [9/9]

$params[ 'purpose'] = 'mentions'

Definition at line 44 of file records.php.

◆ $user

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

Show the different notification settings / preferences for the given user.

For correct rendering and generic handling of the saving of the settings use the 'notifications/settings/record' view

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

Definition at line 10 of file records.php.