From f318ef32bc066adcb816d13b56d2a60c23db8aff Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Thu, 10 Dec 2015 13:45:03 +0800 Subject: [PATCH] MDL-52081 forms: indicate usage of grandparent constructor --- lib/form/dateselector.php | 1 + lib/form/datetimeselector.php | 1 + lib/form/duration.php | 1 + lib/form/modgrade.php | 1 + lib/form/modvisible.php | 1 + lib/form/selectyesno.php | 1 + lib/formslib.php | 1 + lib/pear/HTML/QuickForm/date.php | 1 + lib/pear/HTML/QuickForm/hiddenselect.php | 1 + lib/pear/HTML/QuickForm/hierselect.php | 1 + lib/pear/HTML/QuickForm/link.php | 1 + lib/pear/HTML/QuickForm/radio.php | 1 + 12 files changed, 12 insertions(+) diff --git a/lib/form/dateselector.php b/lib/form/dateselector.php index b2b8448c9d4..1ececad10dd 100644 --- a/lib/form/dateselector.php +++ b/lib/form/dateselector.php @@ -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; diff --git a/lib/form/datetimeselector.php b/lib/form/datetimeselector.php index 7f7f3933195..bdf7e96b28e 100644 --- a/lib/form/datetimeselector.php +++ b/lib/form/datetimeselector.php @@ -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; diff --git a/lib/form/duration.php b/lib/form/duration.php index 7403105a936..bbaf4f40d5b 100644 --- a/lib/form/duration.php +++ b/lib/form/duration.php @@ -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; diff --git a/lib/form/modgrade.php b/lib/form/modgrade.php index 394eee676b4..2d8f54fbf06 100644 --- a/lib/form/modgrade.php +++ b/lib/form/modgrade.php @@ -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; diff --git a/lib/form/modvisible.php b/lib/form/modvisible.php index fdfe4a61712..4df125594b6 100644 --- a/lib/form/modvisible.php +++ b/lib/form/modvisible.php @@ -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'; } diff --git a/lib/form/selectyesno.php b/lib/form/selectyesno.php index 333e573157b..c7f99748702 100644 --- a/lib/form/selectyesno.php +++ b/lib/form/selectyesno.php @@ -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; diff --git a/lib/formslib.php b/lib/formslib.php index b35794803b1..3d1a7e090e9 100644 --- a/lib/formslib.php +++ b/lib/formslib.php @@ -1438,6 +1438,7 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless { static $formcounter = 1; + // TODO MDL-52313 Replace with the call to parent::__construct(). HTML_Common::__construct($attributes); $target = empty($target) ? array() : array('target' => $target); $this->_formName = $formName; diff --git a/lib/pear/HTML/QuickForm/date.php b/lib/pear/HTML/QuickForm/date.php index 0604adfdc22..fbcd2e85d4b 100644 --- a/lib/pear/HTML/QuickForm/date.php +++ b/lib/pear/HTML/QuickForm/date.php @@ -267,6 +267,7 @@ class HTML_QuickForm_date extends HTML_QuickForm_group * @param mixed 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; diff --git a/lib/pear/HTML/QuickForm/hiddenselect.php b/lib/pear/HTML/QuickForm/hiddenselect.php index c63e706e8d8..4a38db809cb 100644 --- a/lib/pear/HTML/QuickForm/hiddenselect.php +++ b/lib/pear/HTML/QuickForm/hiddenselect.php @@ -50,6 +50,7 @@ class HTML_QuickForm_hiddenselect extends HTML_QuickForm_select * @return void */ public function __construct($elementName=null, $elementLabel=null, $options=null, $attributes=null) { + // TODO MDL-52313 Replace with the call to parent::__construct(). HTML_QuickForm_element::__construct($elementName, $elementLabel, $attributes); $this->_persistantFreeze = true; $this->_type = 'hiddenselect'; diff --git a/lib/pear/HTML/QuickForm/hierselect.php b/lib/pear/HTML/QuickForm/hierselect.php index dc3826ff1d7..baa86ff6676 100644 --- a/lib/pear/HTML/QuickForm/hierselect.php +++ b/lib/pear/HTML/QuickForm/hierselect.php @@ -115,6 +115,7 @@ class HTML_QuickForm_hierselect extends HTML_QuickForm_group * @return void */ public function __construct($elementName=null, $elementLabel=null, $attributes=null, $separator=null) { + // TODO MDL-52313 Replace with the call to parent::__construct(). HTML_QuickForm_element::__construct($elementName, $elementLabel, $attributes); $this->_persistantFreeze = true; if (isset($separator)) { diff --git a/lib/pear/HTML/QuickForm/link.php b/lib/pear/HTML/QuickForm/link.php index 52ea0b8a3e2..949e291aa3e 100644 --- a/lib/pear/HTML/QuickForm/link.php +++ b/lib/pear/HTML/QuickForm/link.php @@ -58,6 +58,7 @@ class HTML_QuickForm_link extends HTML_QuickForm_static * @throws */ public function __construct($elementName=null, $elementLabel=null, $href=null, $text=null, $attributes=null) { + // TODO MDL-52313 Replace with the call to parent::__construct(). HTML_QuickForm_element::__construct($elementName, $elementLabel, $attributes); $this->_persistantFreeze = false; $this->_type = 'link'; diff --git a/lib/pear/HTML/QuickForm/radio.php b/lib/pear/HTML/QuickForm/radio.php index 3eec2e4d054..fa26c83708f 100644 --- a/lib/pear/HTML/QuickForm/radio.php +++ b/lib/pear/HTML/QuickForm/radio.php @@ -58,6 +58,7 @@ class HTML_QuickForm_radio extends HTML_QuickForm_input * @return void */ public function __construct($elementName=null, $elementLabel=null, $text=null, $value=null, $attributes=null) { + // TODO MDL-52313 Replace with the call to parent::__construct(). HTML_QuickForm_element::__construct($elementName, $elementLabel, $attributes); if (isset($value)) { $this->setValue($value);