Static Public Member Functions |
| static | Get () |
Static Protected Attributes |
| static | $instances = null |
Detailed Description
Generic widget container
- Author
- Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m GPL 2 or later
- Since
- 3.1
Constructor & Destructor Documentation
Member Function Documentation
| addWidget |
( |
Widget |
$widget, |
|
|
|
$index = null |
|
) |
| |
Add a widget to the container.
- Parameters
-
| Widget | $widget | The actual widget |
| String | $index | Optional index/name of the widget, defaults to class name without "widget" |
Returns the instance of this container to ensure there is only one instance.
- Returns
- WidgetContainer The container instance
Retrieve the widget at the specified position.
- Parameters
-
| String | $index | Index/name of the widget to retrieve. |
- Returns
- WidgetElement The widget at the specified position.
- Exceptions
-
| Exception | if the specified position is invalid |
Returns whether this container has any widget.
- Returns
- bool True if the container has at least one widget, false otherwise.
| insertWidget |
( |
Widget |
$widget, |
|
|
|
$before_index, |
|
|
|
$index = null |
|
) |
| |
Insert a widget before a specific other widget or at the end of the list if the specified position is invalid.
- Parameters
-
| Widget | $widget | The actual widget |
| String | $before_index | Insert widget before this widget |
| String | $index | Optional index/name of the widget, defaults to class name without "widget" |
Removes the widget at the specified position.
- Parameters
-
| String | $index | Index/name of the widget to remove. |
- Exceptions
-
| Exception | if the specified position is invalid |
Field Documentation
The singleton instance of the container
Contains the widgets of the container
The documentation for this class was generated from the following file: