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

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

View file

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

View file

@ -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)) {

View file

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

View file

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