Elgg  Version 6.1
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 = get_input('context')

Definition at line 16 of file save.php.

$context_stack = []

Definition at line 34 of file save.php.

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

Definition at line 40 of file save.php.

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

Definition at line 15 of file save.php.

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

Elgg save widget settings action.

int $_REQUEST['guid'] The guid of the widget to save array $_REQUEST['params'] An array of params to set on the widget. int $_REQUEST['default_widgets'] Flag for if these settings are for default wigets. 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
Initial value:
= [
'content' => elgg_view('object/widget/elements/content', ['entity' => $widget])
$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 = (array) get_input('params')

Definition at line 14 of file save.php.

$widget = get_entity($guid)

Definition at line 18 of file save.php.