Elgg  Version 6.2
Variables
save.php File Reference

Go to the source code of this file.

Variables

 $guid = (int) get_input('guid')
 Elgg save widget settings action. More...
 
 $params = (array) get_input('params')
 
 $default_widgets = (int) get_input('default_widgets', 0)
 
 $context = get_input('context')
 
 $widget = get_entity($guid)
 
 $context_stack = []
 
if($default_widgets) $context_stack [] = 'widgets'
 
 $output
 

Variable Documentation

◆ $context

$context = get_input('context')

Definition at line 16 of file save.php.

◆ $context_stack [1/2]

$context_stack = []

Definition at line 34 of file save.php.

◆ $context_stack [2/2]

if ( $default_widgets) $context_stack[] = 'widgets'

Definition at line 40 of file save.php.

◆ $default_widgets

$default_widgets = (int) get_input('default_widgets', 0)

Definition at line 15 of file save.php.

◆ $guid

$guid = (int) get_input('guid')

Elgg save widget settings action.

@uses int $_REQUEST['guid'] The guid of the widget to save @uses array $_REQUEST['params'] An array of params to set on the widget. @uses int $_REQUEST['default_widgets'] Flag for if these settings are for default wigets. @uses string $_REQUEST['context'] An optional context of the widget. Used to return the correct output if widget content changes depending on context.

Definition at line 13 of file save.php.

◆ $output

$output
Initial value:
= [
'content' => elgg_view('object/widget/elements/content', ['entity' => $widget]),
'title' => $widget->getDisplayName(),
'href' => $widget->getURL(),
]
$widget
Definition: save.php:18
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
Definition: views.php:156

Definition at line 51 of file save.php.

◆ $params

$params = (array) get_input('params')

Definition at line 14 of file save.php.

◆ $widget

$widget = get_entity($guid)

Definition at line 18 of file save.php.