mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +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
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue