mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-52081 forms: indicate usage of grandparent constructor
This commit is contained in:
parent
1a0df5535e
commit
32fada5cb2
12 changed files with 12 additions and 0 deletions
|
@ -80,6 +80,7 @@ class MoodleQuickForm_date_selector extends MoodleQuickForm_group {
|
|||
$calendartype = \core_calendar\type_factory::get_calendar_instance();
|
||||
$this->_options = array('startyear' => $calendartype->get_min_year(), 'stopyear' => $calendartype->get_max_year(),
|
||||
'defaulttime' => 0, 'timezone' => 99, 'step' => 5, 'optional' => false);
|
||||
// TODO MDL-52313 Replace with the call to parent::__construct().
|
||||
HTML_QuickForm_element::__construct($elementName, $elementLabel, $attributes);
|
||||
$this->_persistantFreeze = true;
|
||||
$this->_appendName = true;
|
||||
|
|
|
@ -83,6 +83,7 @@ class MoodleQuickForm_date_time_selector extends MoodleQuickForm_group {
|
|||
$this->_options = array('startyear' => $calendartype->get_min_year(), 'stopyear' => $calendartype->get_max_year(),
|
||||
'defaulttime' => 0, 'timezone' => 99, 'step' => 5, 'optional' => false);
|
||||
|
||||
// TODO MDL-52313 Replace with the call to parent::__construct().
|
||||
HTML_QuickForm_element::__construct($elementName, $elementLabel, $attributes);
|
||||
$this->_persistantFreeze = true;
|
||||
$this->_appendName = true;
|
||||
|
|
|
@ -64,6 +64,7 @@ class MoodleQuickForm_duration extends MoodleQuickForm_group {
|
|||
* @param mixed $attributes Either a typical HTML attribute string or an associative array
|
||||
*/
|
||||
public function __construct($elementName = null, $elementLabel = null, $options = array(), $attributes = null) {
|
||||
// TODO MDL-52313 Replace with the call to parent::__construct().
|
||||
HTML_QuickForm_element::__construct($elementName, $elementLabel, $attributes);
|
||||
$this->_persistantFreeze = true;
|
||||
$this->_appendName = true;
|
||||
|
|
|
@ -54,6 +54,7 @@ class MoodleQuickForm_modgrade extends MoodleQuickForm_group{
|
|||
* @param mixed $attributes Either a typical HTML attribute string or an associative array
|
||||
*/
|
||||
public function __construct($elementname = null, $elementlabel = null, $options = array(), $attributes = null) {
|
||||
// TODO MDL-52313 Replace with the call to parent::__construct().
|
||||
HTML_QuickForm_element::__construct($elementname, $elementlabel, $attributes);
|
||||
$this->_persistantFreeze = true;
|
||||
$this->_appendName = true;
|
||||
|
|
|
@ -49,6 +49,7 @@ class MoodleQuickForm_modvisible extends MoodleQuickForm_select{
|
|||
* @param array $options ignored
|
||||
*/
|
||||
public function __construct($elementName=null, $elementLabel=null, $attributes=null, $options=null) {
|
||||
// TODO MDL-52313 Replace with the call to parent::__construct().
|
||||
HTML_QuickForm_element::__construct($elementName, $elementLabel, $attributes, null);
|
||||
$this->_type = 'modvisible';
|
||||
}
|
||||
|
|
|
@ -48,6 +48,7 @@ class MoodleQuickForm_selectyesno extends MoodleQuickForm_select{
|
|||
* @param mixed $options ignored, not used.
|
||||
*/
|
||||
public function __construct($elementName=null, $elementLabel=null, $attributes=null, $options=null) {
|
||||
// TODO MDL-52313 Replace with the call to parent::__construct().
|
||||
HTML_QuickForm_element::__construct($elementName, $elementLabel, $attributes, null);
|
||||
$this->_type = 'selectyesno';
|
||||
$this->_persistantFreeze = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue