|
| __construct (?string $title=null) |
|
| addCheckbox (string $label, $state, string $toggle_url, ?string $toggle_url_off=null, array $attributes=[]) |
|
| addRadioButton (string $label, string $url, $checked=false, array $attributes=[]) |
|
| addSelect (string $label, $url, string $name, array $options, $selected_option=false, array $attributes=[]) |
|
| __construct () |
|
| addCSSClass ($css_class) |
|
| removeCSSClass ($css_class) |
|
| addSeparator ($attributes=[]) |
|
| render ($variables=[]) |
|
| 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) |
|
◆ __construct()
__construct |
( |
?string |
$title = null | ) |
|
- Parameters
-
string | null | $title | Optional alternative title |
◆ addCheckbox()
addCheckbox |
( |
string |
$label, |
|
|
|
$state, |
|
|
string |
$toggle_url, |
|
|
?string |
$toggle_url_off = null , |
|
|
array |
$attributes = [] |
|
) |
| |
- Parameters
-
string | $label | |
bool | $state | |
string | $toggle_url | Url to execute the action |
string | null | $toggle_url_off | Optional alternative url to explicitely turn off the checkbox ($toggle_url will then act as $toggle_url_on) |
Array | $attributes | Optional additional attributes for the anchor |
- Returns
- ButtonElement
◆ addRadioButton()
addRadioButton |
( |
string |
$label, |
|
|
string |
$url, |
|
|
|
$checked = false , |
|
|
array |
$attributes = [] |
|
) |
| |
Adds a radio button to the widget.
- Parameters
-
string | $label | |
string | $url | |
bool | $checked | |
array | $attributes | |
- Returns
- ButtonElement
◆ addSelect()
addSelect |
( |
string |
$label, |
|
|
|
$url, |
|
|
string |
$name, |
|
|
array |
$options, |
|
|
|
$selected_option = false , |
|
|
array |
$attributes = [] |
|
) |
| |
Adds a select element to the widget.
- Parameters
-
string | $label | |
string | $url | |
string | $name | Attribute name |
array | $options | Array of associative options (value => label) |
mixed | $selected_option | Currently selected option |
array | $attributes | Additional attributes |
◆ INDEX
The documentation for this class was generated from the following file: