MDL-52081 forms: indicate usage of grandparent constructor

This commit is contained in:
Marina Glancy 2015-12-10 13:37:57 +08:00
parent 1a0df5535e
commit 32fada5cb2
12 changed files with 12 additions and 0 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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';
}

View file

@ -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;