MDL-19416 fixed PHP 5.3 compatiblity issue - fixes weird use of constructors in quickforms

This commit is contained in:
skodak 2009-06-07 09:43:27 +00:00
parent 29750da13d
commit 3e8b394e08
15 changed files with 53 additions and 1 deletions

View file

@ -38,6 +38,9 @@ class MoodleQuickForm_button extends HTML_QuickForm_button
* @var string
*/
var $_helpbutton='';
function MoodleQuickForm_button($elementName=null, $value=null, $attributes=null) {
parent::HTML_QuickForm_button($elementName, $value, $attributes);
}
/**
* set html for help button
*

View file

@ -14,6 +14,9 @@ class MoodleQuickForm_checkbox extends HTML_QuickForm_checkbox{
* @var string
*/
var $_helpbutton='';
function MoodleQuickForm_checkbox($elementName=null, $elementLabel=null, $text='', $attributes=null) {
parent::HTML_QuickForm_checkbox($elementName, $elementLabel, $text, $attributes);
}
/**
* set html for help button
*

View file

@ -14,6 +14,9 @@ class MoodleQuickForm_file extends HTML_QuickForm_file{
* @var string
*/
var $_helpbutton='';
function MoodleQuickForm_file($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_file($elementName, $elementLabel, $attributes);
}
/**
* set html for help button
*

View file

@ -17,6 +17,9 @@ class MoodleQuickForm_group extends HTML_QuickForm_group{
* @var string
*/
var $_helpbutton='';
function MoodleQuickForm_group($elementName=null, $elementLabel=null, $elements=null, $separator=null, $appendName = true) {
parent::HTML_QuickForm_group($elementName, $elementLabel, $elements, $separator, $appendName);
}
//would cause problems with client side validation so will leave for now
//var $_elementTemplateType='fieldset';
/**

View file

@ -16,6 +16,10 @@ class MoodleQuickForm_header extends HTML_QuickForm_header
*/
var $_helpbutton='';
function MoodleQuickForm_header($elementName = null, $text = null) {
parent::HTML_QuickForm_header($elementName, $text);
}
// {{{ accept()
/**

View file

@ -14,6 +14,11 @@ class MoodleQuickForm_hidden extends HTML_QuickForm_hidden{
* @var string
*/
var $_helpbutton='';
function MoodleQuickForm_hidden($elementName=null, $value='', $attributes=null) {
parent::HTML_QuickForm_hidden($elementName, $value, $attributes);
}
/**
* set html for help button
*

View file

@ -14,6 +14,9 @@ class MoodleQuickForm_password extends HTML_QuickForm_password{
* @var string
*/
var $_helpbutton='';
function MoodleQuickForm_password($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_password($elementName, $elementLabel, $attributes);
}
/**
* set html for help button
*

View file

@ -14,6 +14,10 @@ require_once($CFG->libdir.'/form/password.php');
*/
class MoodleQuickForm_passwordunmask extends MoodleQuickForm_password {
function MoodleQuickForm_passwordunmask($elementName=null, $elementLabel=null, $attributes=null) {
parent::MoodleQuickForm_password($elementName, $elementLabel, $attributes);
}
function toHtml() {
if ($this->_flagFrozen) {
return $this->getFrozenHtml();

View file

@ -14,6 +14,9 @@ class MoodleQuickForm_radio extends HTML_QuickForm_radio{
* @var string
*/
var $_helpbutton='';
function MoodleQuickForm_radio($elementName=null, $elementLabel=null, $text=null, $value=null, $attributes=null) {
parent::HTML_QuickForm_radio($elementName, $elementLabel, $text, $value, $attributes);
}
/**
* set html for help button
*

View file

@ -15,6 +15,10 @@ class MoodleQuickForm_select extends HTML_QuickForm_select{
*/
var $_helpbutton='';
var $_hiddenLabel=false;
function MoodleQuickForm_select($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
parent::HTML_QuickForm_select($elementName, $elementLabel, $options, $attributes);
}
function setHiddenLabel($hiddenLabel){
$this->_hiddenLabel = $hiddenLabel;
}

View file

@ -15,6 +15,9 @@ class MoodleQuickForm_static extends HTML_QuickForm_static{
* @var string
*/
var $_helpbutton='';
function MoodleQuickForm_static($elementName=null, $elementLabel=null, $text=null) {
parent::HTML_QuickForm_static($elementName, $elementLabel, $text);
}
/**
* set html for help button
*

View file

@ -11,6 +11,9 @@ require_once("HTML/QuickForm/submit.php");
* @access public
*/
class MoodleQuickForm_submit extends HTML_QuickForm_submit {
function MoodleQuickForm_submit($elementName=null, $value=null, $attributes=null) {
parent::HTML_QuickForm_submit($elementName, $value, $attributes);
}
/**
* Called by HTML_QuickForm whenever form event is made on this element
*

View file

@ -4,6 +4,9 @@ require_once("$CFG->libdir/form/submit.php");
class MoodleQuickForm_submitlink extends MoodleQuickForm_submit {
var $_js;
var $_onclick;
function MoodleQuickForm_submitlink($elementName=null, $value=null, $attributes=null) {
parent::MoodleQuickForm_submit($elementName, $value, $attributes);
}
function toHtml() {
$text = $this->_attributes['value'];

View file

@ -15,6 +15,11 @@ class MoodleQuickForm_text extends HTML_QuickForm_text{
*/
var $_helpbutton='';
var $_hiddenLabel=false;
function MoodleQuickForm_text($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
}
function setHiddenLabel($hiddenLabel){
$this->_hiddenLabel = $hiddenLabel;
}

View file

@ -23,6 +23,9 @@ class MoodleQuickForm_textarea extends HTML_QuickForm_textarea{
var $_hiddenLabel=false;
function MoodleQuickForm_textarea($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_textarea($elementName, $elementLabel, $attributes);
}
/**
* set html for help button
*