Stud.IP  6.0
NavigationWidget Class Reference
Inheritance diagram for NavigationWidget:
LinksWidget ListWidget SidebarWidget Widget

Public Member Functions

 __construct ()
addLink ($label, $url, $icon=null, $attributes=[], $index=null)
- Public Member Functions inherited from ListWidget
 __construct ()
 addCSSClass ($css_class)
 removeCSSClass ($css_class)
 addSeparator ($attributes=[])
 render ($variables=[])
- Public Member Functions inherited from SidebarWidget
 __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)

Additional Inherited Members

- Protected Member Functions inherited from Widget
 guessIndex (WidgetElement $element)
- Protected Attributes inherited from ListWidget
 $css_classes = []
- Protected Attributes inherited from SidebarWidget
 $additional_attributes = []
- Protected Attributes inherited from Widget
 $elements = []
 $template = 'widgets/widget'
 $template_variables = []
 $layout = 'widgets/widget-layout'
 $forced_rendering = false
 $layout_css_classes = []

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Member Function Documentation

◆ addLink()

& addLink (   $label,
  $icon = null,
  $attributes = [],
  $index = null 

Adds a link to the widget

String$labelLabel/content of the link
String$urlURL/Location of the link
Icon$icon(not used)
array$attributesOptional attributes fot the generated link
mixed$indexIndex to use for the element

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