Elgg  Version 2.3
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)) $handler = $widget->handler
 
 $widget_instance = preg_replace('/[^a-z0-9-]/i', '-', "elgg-widget-instance-$handler")
 
 $widget_class = elgg_extract_class($vars, $widget_instance)
 
 $widget_class [] = $widget->canEdit() ? 'elgg-state-draggable' : 'elgg-state-fixed'
 

Variable Documentation

if (!($widget instanceof\ElggWidget)) $handler = $widget->handler

Definition at line 15 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 19 of file widget.php.

$widget_class[] = $widget->canEdit() ? 'elgg-state-draggable' : 'elgg-state-fixed'

Definition at line 20 of file widget.php.

$widget_instance = preg_replace('/[^a-z0-9-]/i', '-', "elgg-widget-instance-$handler")

Definition at line 17 of file widget.php.