|
| | __construct ($url, $name, $method='get', $multiple=false) |
| |
| | includeAllOption ($include_all_option=true) |
| |
| | setSelectedElementIds ($element_ids=[]) |
| |
| | render ($variables=[]) |
| |
| | __construct ($title, $url, $name, $method='get', $multiple=false) |
| |
| | setUrl ($url) |
| |
| | setMaxLength ($length) |
| |
| | setSelectParameterName ($name) |
| |
| | setSelection ($value) |
| |
| | setRequestMethod ($method) |
| |
| | setMultiple ($multiple) |
| |
| | setOptions (array $options, $selected=false) |
| |
| | 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=array()) |
| |
| | __isset ($offset) |
| |
| | __get ($offset) |
| |
| | __set ($offset, $value) |
| |
| | __unset ($offset) |
| |
InstituteSelectWidget
This is a specialisation of the select widget for institutes and their faculties.
- Author
- Moritz Strohm stroh.nosp@m.m@da.nosp@m.ta-qu.nosp@m.est..nosp@m.de
- See also
- SelectWidget
- Since
- 4.5 @license GPL2 or any later version
- Copyright
- Stud.IP Core Group
◆ __construct()
| __construct |
( |
|
$url, |
|
|
|
$name, |
|
|
|
$method = 'get', |
|
|
|
$multiple = false |
|
) |
| |
◆ includeAllOption()
| includeAllOption |
( |
|
$include_all_option = true | ) |
|
Sets the $include_all_option attribute that specifies whether an option for selecting all institutes shall be provided (true) or not (false). This defaults to true.
◆ render()
| render |
( |
|
$variables = [] | ) |
|
Renders the select widget
- Parameters
-
| array | $variables | Additional vaiarbles |
- Returns
- string rendered widget as ghtml
Reimplemented from SelectWidget.
◆ setSelectedElementIds()
| setSelectedElementIds |
( |
|
$element_ids = [] | ) |
|
This method allows setting the selected elements from other sources than the select's name from a request.
- Parameters
-
| Array | string | $element_ids | The ID of one element (as string) or the IDs of more than one element (as array) which have been selected. |
◆ $include_all_option
◆ $selected_element_ids
The IDs of the selected institutes.
The documentation for this class was generated from the following file: