Elgg  Version master
Variables
add_panel.php File Reference

Go to the source code of this file.

Variables

 $context_stack = get_input('context_stack')
 
 $context = (string) elgg_extract('context', $vars, get_input('context'))
 
 $owner_guid = (int) elgg_extract('owner_guid', $vars, (int) get_input('owner_guid'))
 
 $new_widget_column = elgg_extract('new_widget_column', $vars, get_input('new_widget_column'))
 
 $new_widget_position = elgg_extract('new_widget_position', $vars, get_input('new_widget_position'))
 
 $owner = get_entity($owner_guid)
 
 $widgets = elgg_get_widgets($owner->guid, $context)
 
 $widget_types
 
 $current_handlers = []
 
foreach($widgets as $column_widgets) $result
 
 $list_items = ''
 
 $search_box
 

Variable Documentation

$context = (string) elgg_extract('context', $vars, get_input('context'))

Definition at line 21 of file add_panel.php.

$context_stack = get_input('context_stack')

Definition at line 14 of file add_panel.php.

$current_handlers = []

Definition at line 41 of file add_panel.php.

$list_items = ''

Definition at line 52 of file add_panel.php.

$new_widget_column = elgg_extract('new_widget_column', $vars, get_input('new_widget_column'))

Definition at line 23 of file add_panel.php.

$new_widget_position = elgg_extract('new_widget_position', $vars, get_input('new_widget_position'))

Definition at line 24 of file add_panel.php.

$owner = get_entity($owner_guid)

Definition at line 28 of file add_panel.php.

$owner_guid = (int) elgg_extract('owner_guid', $vars, (int) get_input('owner_guid'))

Definition at line 22 of file add_panel.php.

foreach ($widget_types as $handler=> $widget_type) $result
Initial value:
'class' => 'elgg-text-help',
], elgg_echo('widgets:add:description'))
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145

Definition at line 48 of file add_panel.php.

$search_box
Initial value:
= elgg_view('input/text', [
'name' => 'widget_search',
'title' => elgg_echo('search'),
'placeholder' => elgg_echo('search'),
])
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156

Definition at line 104 of file add_panel.php.

$widget_types
Initial value:
'context' => $context,
'container' => $owner,
])
$context
Definition: add_panel.php:21
elgg_get_widget_types(string|array $context= '')
Get the widget types for a context.
Definition: widgets.php:112
$owner
Definition: add_panel.php:28

Definition at line 33 of file add_panel.php.

$widgets = elgg_get_widgets($owner->guid, $context)

Definition at line 32 of file add_panel.php.