Elgg  Version 3.0
Namespaces | Variables
save.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Updates the advanced settings for the primary site object.
 

Variables

 $guid = (int) get_input('guid')
 
 $params = (array) get_input('params')
 
 $default_widgets = (int) get_input('default_widgets', 0)
 
 $context = get_input('context')
 
 $widget = get_entity($guid)
 
if(!($widget instanceof\ElggWidget)||!$widget->saveSettings($params)) $context_stack = []
 
if($default_widgets) $context_stack [] = 'widgets'
 
 $output
 

Variable Documentation

$context = get_input('context')

Definition at line 19 of file save.php.

if (!($widget instanceof\ElggWidget)||!$widget->saveSettings($params)) $context_stack = []

Definition at line 26 of file save.php.

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

Definition at line 31 of file save.php.

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

Definition at line 18 of file save.php.

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

Definition at line 16 of file save.php.

$output
Initial value:
= [
'content' => elgg_view('object/widget/elements/content', ['entity' => $widget])
$widget
Definition: save.php:21
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246

Definition at line 42 of file save.php.

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

Definition at line 17 of file save.php.

$widget = get_entity($guid)

Definition at line 21 of file save.php.