Elgg  Version master
Variables
widget.php File Reference

Go to the source code of this file.

Variables

 $widget = elgg_extract('entity', $vars)
 Widget object. More...
 
if(!$widget instanceof\ElggWidget) $widget_instance = preg_replace('/[^a-z0-9-]/i', '-', "elgg-widget-instance-{$widget->handler}")
 
 $widget_class = elgg_extract_class($vars, $widget_instance)
 
if($widget->canEdit()) $body = elgg_view('object/widget/body', $vars)
 

Variable Documentation

if ($widget->canEdit()) $body = elgg_view('object/widget/body', $vars)

Definition at line 27 of file widget.php.

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

Widget object.

$vars['entity'] ElggWidget $vars['show_access'] Show the access control in edit area? (true) $vars['class'] Optional additional CSS class

Definition at line 10 of file widget.php.

$widget_class = elgg_extract_class($vars, $widget_instance)

Definition at line 16 of file widget.php.

if (!$widget instanceof\ElggWidget) $widget_instance = preg_replace('/[^a-z0-9-]/i', '-', "elgg-widget-instance-{$widget->handler}")

Definition at line 15 of file widget.php.