This widget type consists of a template and associated variables and will render the template content as the widget content.
- Author
- Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m @license GPL2 or any later version
- Since
- Stud.IP 4.0
◆ __construct()
| __construct |
( |
|
$title, |
|
|
Flexi_Template |
$template, |
|
|
array |
$variables = [] |
|
) |
| |
Constructor of the widget.
- Parameters
-
| String | $title | Title of the widget |
| Flexi_Template | $template | Template for the widget |
| Array | $variables | Associated variables for the template |
◆ render()
| render |
( |
|
$variables = [] | ) |
|
Renders the template and widget.
- Parameters
-
| array | $variables | Additional variables for rendering |
- Returns
- string containing the rendered widget as html
Reimplemented from SidebarWidget.
◆ $template
The documentation for this class was generated from the following file: