MDL-19416 fixed critical PHP 5.3 compatibility issue

This commit is contained in:
skodak
2009-06-13 17:24:40 +00:00
parent 3c2c558e23
commit 3c36dff587
15 changed files with 53 additions and 0 deletions
+3
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
*
+3
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
*
+3
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
*
+3
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';
/**
+4
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()
/**
+5
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
*
+3
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
*
+4
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();
+3
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
*
+4
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;
}
+3
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
*
+3
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
*
+3
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'];
+5
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;
}
+4
View File
@@ -20,6 +20,10 @@ class MoodleQuickForm_textarea extends HTML_QuickForm_textarea{
* @var string
*/
var $_helpbutton='';
function MoodleQuickForm_textarea($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_textarea($elementName, $elementLabel, $attributes);
}
/**
* set html for help button
*