mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-55215 forms: Rename searchableselector params
This commit is contained in:
parent
0e5db67d8e
commit
741c0e6abe
1 changed files with 5 additions and 5 deletions
|
@ -44,12 +44,12 @@ class MoodleQuickForm_searchableselector extends MoodleQuickForm_autocomplete {
|
|||
*
|
||||
* @param string $elementname Element name
|
||||
* @param mixed $elementlabel Label(s) for an element
|
||||
* @param array $choices List of valid choices for the select.
|
||||
* @param array $options List of valid options for the select.
|
||||
* @param array $options List of valid options for the select
|
||||
* @param array $attributes List of HTML attributes for the select
|
||||
*/
|
||||
public function __construct($elementname = null, $elementlabel = null, $choices = array(), $options = array()) {
|
||||
$choices = array_merge(['' => get_string('noselection', 'form')], $choices);
|
||||
parent::__construct($elementname, $elementlabel, $choices, $options);
|
||||
public function __construct($elementname = null, $elementlabel = null, $options = [], $attributes = []) {
|
||||
$options = array_merge(['' => get_string('noselection', 'form')], $options);
|
||||
parent::__construct($elementname, $elementlabel, $options, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue