### Eclipse Workspace Patch 1.0 #P moodle20 Index: lib/form/static.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/static.php,v retrieving revision 1.5 diff -u -r1.5 static.php --- lib/form/static.php 10 Jan 2007 05:05:26 -0000 1.5 +++ lib/form/static.php 7 Jun 2009 09:41:08 -0000 @@ -15,6 +15,9 @@ * @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: lib/form/radio.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/radio.php,v retrieving revision 1.8 diff -u -r1.8 radio.php --- lib/form/radio.php 27 Jul 2007 11:05:34 -0000 1.8 +++ lib/form/radio.php 7 Jun 2009 09:41:08 -0000 @@ -14,6 +14,9 @@ * @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: lib/form/hidden.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/hidden.php,v retrieving revision 1.3 diff -u -r1.3 hidden.php --- lib/form/hidden.php 13 Nov 2006 07:43:22 -0000 1.3 +++ lib/form/hidden.php 7 Jun 2009 09:41:08 -0000 @@ -14,6 +14,11 @@ * @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: lib/form/checkbox.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/checkbox.php,v retrieving revision 1.10 diff -u -r1.10 checkbox.php --- lib/form/checkbox.php 12 Sep 2007 11:17:35 -0000 1.10 +++ lib/form/checkbox.php 7 Jun 2009 09:41:08 -0000 @@ -14,6 +14,9 @@ * @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: lib/form/textarea.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/textarea.php,v retrieving revision 1.9 diff -u -r1.9 textarea.php --- lib/form/textarea.php 15 Jan 2009 09:24:45 -0000 1.9 +++ lib/form/textarea.php 7 Jun 2009 09:41:08 -0000 @@ -23,6 +23,9 @@ var $_hiddenLabel=false; + function MoodleQuickForm_textarea($elementName=null, $elementLabel=null, $attributes=null) { + parent::HTML_QuickForm_textarea($elementName, $elementLabel, $attributes); + } /** * set html for help button * Index: lib/form/select.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/select.php,v retrieving revision 1.11 diff -u -r1.11 select.php --- lib/form/select.php 24 Apr 2009 07:15:45 -0000 1.11 +++ lib/form/select.php 7 Jun 2009 09:41:08 -0000 @@ -15,6 +15,10 @@ */ 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: lib/form/submit.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/submit.php,v retrieving revision 1.6 diff -u -r1.6 submit.php --- lib/form/submit.php 27 May 2007 05:01:51 -0000 1.6 +++ lib/form/submit.php 7 Jun 2009 09:41:08 -0000 @@ -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 * Index: lib/form/file.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/file.php,v retrieving revision 1.6 diff -u -r1.6 file.php --- lib/form/file.php 27 May 2007 05:01:51 -0000 1.6 +++ lib/form/file.php 7 Jun 2009 09:41:08 -0000 @@ -14,6 +14,9 @@ * @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: lib/form/header.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/header.php,v retrieving revision 1.2 diff -u -r1.2 header.php --- lib/form/header.php 4 Jan 2007 10:23:07 -0000 1.2 +++ lib/form/header.php 7 Jun 2009 09:41:08 -0000 @@ -16,6 +16,10 @@ */ var $_helpbutton=''; + function MoodleQuickForm_header($elementName = null, $text = null) { + parent::HTML_QuickForm_header($elementName, $text); + } + // {{{ accept() /** Index: lib/form/button.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/button.php,v retrieving revision 1.3 diff -u -r1.3 button.php --- lib/form/button.php 27 May 2007 05:01:51 -0000 1.3 +++ lib/form/button.php 7 Jun 2009 09:41:08 -0000 @@ -38,6 +38,9 @@ * @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: lib/form/text.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/text.php,v retrieving revision 1.7 diff -u -r1.7 text.php --- lib/form/text.php 11 Jan 2007 04:57:57 -0000 1.7 +++ lib/form/text.php 7 Jun 2009 09:41:08 -0000 @@ -15,6 +15,11 @@ */ 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: lib/form/password.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/password.php,v retrieving revision 1.4 diff -u -r1.4 password.php --- lib/form/password.php 4 Jan 2007 10:23:07 -0000 1.4 +++ lib/form/password.php 7 Jun 2009 09:41:08 -0000 @@ -14,6 +14,9 @@ * @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: lib/form/group.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/group.php,v retrieving revision 1.10 diff -u -r1.10 group.php --- lib/form/group.php 16 Jan 2009 06:29:56 -0000 1.10 +++ lib/form/group.php 7 Jun 2009 09:41:08 -0000 @@ -17,6 +17,9 @@ * @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: lib/form/submitlink.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/submitlink.php,v retrieving revision 1.2 diff -u -r1.2 submitlink.php --- lib/form/submitlink.php 4 Dec 2007 10:35:26 -0000 1.2 +++ lib/form/submitlink.php 7 Jun 2009 09:41:08 -0000 @@ -4,7 +4,10 @@ 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: lib/form/passwordunmask.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/form/passwordunmask.php,v retrieving revision 1.3 diff -u -r1.3 passwordunmask.php --- lib/form/passwordunmask.php 21 Aug 2008 08:00:51 -0000 1.3 +++ lib/form/passwordunmask.php 7 Jun 2009 09:41:08 -0000 @@ -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();