|
| __construct (string $title) |
|
| addCheckbox (string $label, string $filter_name, bool $checked=false, $true_value=1, $false_value=null, array $attributes=[]) |
|
| addRadioButton (string $label, string $filter_name, $value, bool $checked=false, array $attributes=[]) |
|
| addSelect (string $label, string $filter_name, array $options, $selected_value=null, array $attributes=[]) |
|
| setPositionInSidebar (?string $position) |
|
| getPositionInSidebar () |
|
| __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) |
|
This is a special widget class for use with the admin course page. It will connect to the Vue app and use it's method to change the filters.
- Author
- Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Since
- Stud.IP 5.4
◆ __construct()
__construct |
( |
string |
$title | ) |
|
◆ addCheckbox()
addCheckbox |
( |
string |
$label, |
|
|
string |
$filter_name, |
|
|
bool |
$checked = false , |
|
|
|
$true_value = 1 , |
|
|
|
$false_value = null , |
|
|
array |
$attributes = [] |
|
) |
| |
Adds a checkbox to the widget.
- Parameters
-
string | $label | |
string | $filter_name | |
bool | $checked | |
| $true_value | |
| $false_value | |
array | $attributes | |
- Returns
- ButtonElement
◆ addRadioButton()
addRadioButton |
( |
string |
$label, |
|
|
string |
$filter_name, |
|
|
|
$value, |
|
|
bool |
$checked = false , |
|
|
array |
$attributes = [] |
|
) |
| |
Adds a radio button to the widget.
- Parameters
-
string | $label | |
string | $filter_name | |
| $value | |
bool | $checked | |
array | $attributes | |
- Returns
- ButtonElement
◆ addSelect()
addSelect |
( |
string |
$label, |
|
|
string |
$filter_name, |
|
|
array |
$options, |
|
|
|
$selected_value = null , |
|
|
array |
$attributes = [] |
|
) |
| |
Adds a select list to the widget.
- Parameters
-
string | $label | |
string | $filter_name | |
array | $options | |
| $selected_value | |
array | $attributes | |
◆ getPositionInSidebar()
Returns the position where the widget should be inserted in the sidebar.
- Returns
- string|null
◆ setPositionInSidebar()
setPositionInSidebar |
( |
?string |
$position | ) |
|
Sets the position where the widget should be inserted in the sidebar.
◆ $position_in_sidebar
$position_in_sidebar = null |
|
protected |
The documentation for this class was generated from the following file: