◆ __get()
◆ __isset()
◆ __set()
| __set |
( |
|
$offset, |
|
|
|
$value |
|
) |
| |
◆ __unset()
◆ addElement()
Add an element to the widget.
- Parameters
-
| WidgetElement | $element | The actual element |
| String | $index | Index/name of the element |
◆ forceRendering()
| forceRendering |
( |
|
$state = true | ) |
|
Force rendering
- Parameters
-
| bool | $state | Whether to force rendering or not |
◆ getElement()
Retrieve the element at the specified position.
- Parameters
-
| String | $index | Index/name of the element to retrieve. |
- Returns
- WidgetElement The element at the specified position.
- Exceptions
-
| Exception | if the specified position is invalid |
◆ getElements()
Returns all elements of the widget.
- Returns
- array of WidgetElement
◆ guessIndex()
Tries to guess an appropriate index name for the element.
- Parameters
-
- Returns
- String Appropriate index name
◆ hasElement()
Returns whether an element exists at the given index.
- Parameters
-
| String | $index | Index/name of the element to check for. |
- Returns
- bool Does a widget exist at the given index?
◆ hasElements()
Returns whether this widget has any elements.
- Returns
- bool True if the widget has at least one element, false otherwise.
Reimplemented in SearchWidget.
◆ insertElement()
Insert an element before a specific other element or at the end of the list if the specified position is invalid.
- Parameters
-
| WidgetElement | $element | The actual element |
| String | $before_index | Insert element before this element. |
| String | $index | Index/name of the element |
◆ removeElement()
Removes the element at the specified position.
- Parameters
-
| String | $index | Index/name of the element to remove. |
- Exceptions
-
| Exception | if the specified position is invalid |
◆ render()
| render |
( |
|
$variables = array() | ) |
|
◆ $elements
Contains the elements of the widget.
◆ $forced_rendering
| $forced_rendering = false |
|
protected |
◆ $layout
| $layout = 'widgets/widget-layout' |
|
protected |
◆ $template
| $template = 'widgets/widget' |
|
protected |
Contains the template used to render the widget.
◆ $template_variables
| $template_variables = array() |
|
protected |
Contains additional template variables
The documentation for this class was generated from the following file: