Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
SidebarWidget Class Reference
Inheritance diagram for SidebarWidget:
Widget BlubberThreadsWidget ClipboardWidget ListWidget ResourceTreeWidget RoomSearchWidget SearchWidget SelectWidget TemplateWidget

Public Member Functions

 __construct ()
 setId (string $id)
 getId ()
 setTitle ($title)
 getTitle ()
 removeTitle ()
 setExtra ($extra)
 getExtra ()
 removeExtra ()
 setAdditionalAttribute (string $key, $value)
 setAdditionalAttributes (array $attributes)
 removeAdditionalAttribute (string $key)
 render ($variables=[])
- Public Member Functions inherited from Widget
 addElement (WidgetElement $element, $index=null)
 insertElement (WidgetElement $element, $before_index, $index=null)
 getElement ($index)
 getElements ()
 removeElement ($index)
 hasElements ()
 hasElement ($index)
 forceRendering ($state=true)
 addLayoutCSSClass ($css_class)
 removeLayoutCSSClass ($css_class)
 render ($variables=[])
 __isset ($offset)
 __get ($offset)
 __set ($offset, $value)
 __unset ($offset)

Protected Attributes

 $additional_attributes = []
- Protected Attributes inherited from Widget
 $elements = []
 $template = 'widgets/widget'
 $template_variables = []
 $layout = 'widgets/widget-layout'
 $forced_rendering = false
 $layout_css_classes = []

Additional Inherited Members

- Protected Member Functions inherited from Widget
 guessIndex (WidgetElement $element)

Detailed Description

A widget for the sidebar.

Jan-Hendrik Willms GPL 2 or later
See Also

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

getExtra ( )
getId ( )

Returns the ID of this widget, if it is set.

string The ID of the widget or an empty string, if it is not set.
getTitle ( )

Returns the title of the widget

string The title of the widget of false if no title has been set
removeAdditionalAttribute ( string  $key)
removeExtra ( )
removeTitle ( )

Removes the title of the widget.

render (   $variables = [])

Renders the widget. The widget will only be rendered if it contains at least one element.

string The THML code of the rendered sidebar widget
setAdditionalAttribute ( string  $key,
setAdditionalAttributes ( array  $attributes)
setExtra (   $extra)
setId ( string  $id)

Sets the ID of the HTML element that represents the widget.

string$idThe element-ID to be used for the widget.
setTitle (   $title)

Sets the title of the widget.

string$titleThe title of the widget

Field Documentation

$additional_attributes = []

The documentation for this class was generated from the following file: