Stud.IP
4.2 Revision
|
Public Member Functions | |
__construct ($title, Flexi_Template $template, array $variables=[]) | |
render ($variables=[]) | |
![]() | |
__construct () | |
setTitle ($title) | |
getTitle () | |
removeTitle () | |
setExtra ($extra) | |
getExtra () | |
removeExtra () | |
render ($variables=array()) | |
![]() | |
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=array()) | |
__isset ($offset) | |
__get ($offset) | |
__set ($offset, $value) | |
__unset ($offset) | |
Protected Attributes | |
$template | |
![]() | |
$elements = array() | |
$template = 'widgets/widget' | |
$template_variables = array() | |
$layout = 'widgets/widget-layout' | |
$forced_rendering = false | |
$layout_css_classes = array() | |
Additional Inherited Members | |
![]() | |
guessIndex (WidgetElement $element) | |
This widget type consists of a template and associated variables and will render the template content as the widget content.
__construct | ( | $title, | |
Flexi_Template | $template, | ||
array | $variables = [] |
||
) |
Constructor of the widget.
String | $title | Title of the widget |
Flexi_Template | $template | Template for the widget |
array | $variables | Associated variables for the template |
render | ( | $variables = [] | ) |
Renders the template and widget.
array | $variables | Additional variables for rendering |
|
protected |