Skip to content

Commit

Permalink
MDL-19416 fixed critical PHP 5.3 compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 13, 2009
1 parent 3c2c558 commit 3c36dff
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/form/button.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
3 changes: 3 additions & 0 deletions lib/form/checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
3 changes: 3 additions & 0 deletions lib/form/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
3 changes: 3 additions & 0 deletions lib/form/group.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
/**
Expand Down
4 changes: 4 additions & 0 deletions lib/form/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()

/**
Expand Down
5 changes: 5 additions & 0 deletions lib/form/hidden.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
3 changes: 3 additions & 0 deletions lib/form/password.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
4 changes: 4 additions & 0 deletions lib/form/passwordunmask.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
*/
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();
Expand Down
3 changes: 3 additions & 0 deletions lib/form/radio.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
4 changes: 4 additions & 0 deletions lib/form/select.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions lib/form/static.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
3 changes: 3 additions & 0 deletions lib/form/submit.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
* @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
*
Expand Down
3 changes: 3 additions & 0 deletions lib/form/submitlink.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
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'];
Expand Down
5 changes: 5 additions & 0 deletions lib/form/text.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 4 additions & 0 deletions lib/form/textarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 3c36dff

Please sign in to comment.