]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19416 fixed PHP 5.3 compatiblity issue - fixes weird use of constructors in quick...
authorskodak <skodak>
Sun, 7 Jun 2009 09:43:27 +0000 (09:43 +0000)
committerskodak <skodak>
Sun, 7 Jun 2009 09:43:27 +0000 (09:43 +0000)
15 files changed:
lib/form/button.php
lib/form/checkbox.php
lib/form/file.php
lib/form/group.php
lib/form/header.php
lib/form/hidden.php
lib/form/password.php
lib/form/passwordunmask.php
lib/form/radio.php
lib/form/select.php
lib/form/static.php
lib/form/submit.php
lib/form/submitlink.php
lib/form/text.php
lib/form/textarea.php

index 2e5649f3f80694532f3ea18c9723af799b200144..31aa6673f7df359c2e97444175c061848336a895 100644 (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
      *
index a2d9cbd9707b4c55c73b78c83c4bfa309988eaf4..d3c026214a6f28490839bbfa0cd9d968decb3a7b 100644 (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
      *
index b25842b70208ec6dc052320f95c868a89519360c..6d7726f11b66c0346cbe936c20d461ee15f500bb 100644 (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
      *
index fa173da6b8045f6ca24c71a6636a88ba8e26cfef..a8f5633790c23e24519811170da73ed281ec742e 100644 (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';
     /**
index b2f6b7e408136b143c40f648a86d2130ddb4799c..cc6425b5bdc1fe55a2e8b0072de81e892a0458f6 100644 (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()
 
    /**
index 7e78b1b1fab4d8ea5f751ed3621122d2c1a41177..1c5997d85da30b5364c4ab5f8bd3de9e6671a04f 100644 (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
      *
index 9c0cc08aff0a19b89f466f3637313459ebed9fa6..a17b8327a61b4b30b279e9c222ae0805974f0d4e 100644 (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
      *
index 29105159c8bd8ed3656d97869e48c565604eee7e..ea9148787bb8723b2307722abd9228f7231a630a 100644 (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();
index cdd3fabbdaffb2413e5fece9d263c9bacd6a128c..66384bda2b2d8a85bf6593c147952633c7b7f073 100644 (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
      *
index 6dfff5fede433fb78d78a2201d31d9b801e3ae93..92a69cba198143dce8f0af329eab93a2a49f25d4 100644 (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;
     }
index 4e5503d08fb0fe7b01611488bc7be3b6b3139cb2..56274c09c5a3a3080eac597b476501a3b7d6f7be 100644 (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
      *
index 406b2941a326cb1022565d17b69ca8efcf1a93c5..e990721051438b94ae3dde793b45dfdf1bcb34de 100644 (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
      *
index 9b5c6b015cde3ed8eb4dbe625506075490041157..fca8f5fec5defde501c1bcbdb97df8c69a8c523f 100644 (file)
@@ -4,7 +4,10 @@ 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'];
         $onmouseover = "window.status=\'" . $text . "\';";
index b0eccb4f897c2c4c8d5c8ed9e0f343ef4a020bbc..32f48d52b3ed35f7f0aaee2b6c6f14ecea08efae 100644 (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;
     }
index 5803c28ac15d4faba0f47877501454d704b9b763..fc4dc04fa965dc98213754501b49815921bc918a 100644 (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
      *