]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trail...
authorPetr Skoda <skodak@moodle.org>
Sun, 1 Nov 2009 11:42:23 +0000 (11:42 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 1 Nov 2009 11:42:23 +0000 (11:42 +0000)
64 files changed:
lib/form/advcheckbox.php
lib/form/button.php
lib/form/cancel.php
lib/form/checkbox.php
lib/form/choosecoursefile.php
lib/form/choosecoursefileorimsrepo.php
lib/form/dateselector.php
lib/form/datetimeselector.php
lib/form/duration.php
lib/form/editorhelp.php
lib/form/file.php
lib/form/format.php
lib/form/group.php
lib/form/header.php
lib/form/hidden.php
lib/form/htmleditor.php
lib/form/modgrade.php
lib/form/modvisible.php
lib/form/password.php
lib/form/passwordunmask.php
lib/form/questioncategory.php
lib/form/radio.php
lib/form/recaptcha.php
lib/form/select.php
lib/form/selectgroups.php
lib/form/selectwithlink.php
lib/form/selectyesno.php
lib/form/simpletest/testduration.php
lib/form/static.php
lib/form/submit.php
lib/form/submitlink.php
lib/form/tags.php
lib/form/textarea.php
lib/form/texturl.php
lib/form/url.php
lib/form/warning.php
lib/grade/grade_grade.php
lib/grade/grade_item.php
lib/grade/grade_object.php
lib/grade/grade_outcome.php
lib/grade/grade_scale.php
lib/grade/simpletest/testgradecategory.php
lib/grade/simpletest/testgradegrades.php
lib/grade/simpletest/testgradeitem.php
lib/grade/simpletest/testgradeoutcome.php
lib/grade/simpletest/testgradescale.php
lib/packer/file_archive.php
lib/packer/file_packer.php
lib/portfolio/caller.php
lib/portfolio/constants.php
lib/portfolio/exceptions.php
lib/portfolio/exporter.php
lib/portfolio/formats.php
lib/portfolio/forms.php
lib/portfolio/plugin.php
lib/xmldb/xmldb_constants.php
lib/xmldb/xmldb_field.php
lib/xmldb/xmldb_file.php
lib/xmldb/xmldb_index.php
lib/xmldb/xmldb_key.php
lib/xmldb/xmldb_object.php
lib/xmldb/xmldb_statement.php
lib/xmldb/xmldb_structure.php
lib/xmldb/xmldb_table.php

index 63938e70729e51b834e375f04c0c93f48babad03..7507627ab6d7a8c2f5be15373cac193b779badfc 100644 (file)
@@ -43,27 +43,27 @@ class MoodleQuickForm_advcheckbox extends HTML_QuickForm_advcheckbox{
         if ($values === null){
             $values = array(0, 1);
         }
-        
+
         if (!is_null($attributes['group'])) {
-        
+
             $this->_group = 'checkboxgroup' . $attributes['group'];
             unset($attributes['group']);
             if (is_null($attributes)) {
                 $attributes = array();
-                $attributes['class'] .= " $this->_group"; 
+                $attributes['class'] .= " $this->_group";
             } elseif (is_array($attributes)) {
                 if (isset($attributes['class'])) {
                     $attributes['class'] .= " $this->_group";
                 } else {
-                    $attributes['class'] = $this->_group; 
+                    $attributes['class'] = $this->_group;
                 }
             } elseif ($strpos = stripos($attributes, 'class="')) {
                 $attributes = str_ireplace('class="', 'class="' . $this->_group . ' ', $attributes);
             } else {
                 $attributes .= ' class="' . $this->_group . '"';
-            } 
-        } 
-        
+            }
+        }
+
         parent::HTML_QuickForm_advcheckbox($elementName, $elementLabel, $text, $attributes, $values);
     } //end constructor
 
@@ -140,4 +140,3 @@ class MoodleQuickForm_advcheckbox extends HTML_QuickForm_advcheckbox{
     } //end func getFrozenHtml
 
 }
-?>
\ No newline at end of file
index 31aa6673f7df359c2e97444175c061848336a895..0a239f1c1404a26303887f7adfc43d31bc1290f7 100644 (file)
@@ -84,4 +84,3 @@ class MoodleQuickForm_button extends HTML_QuickForm_button
         }
     }
 } //end class MoodleQuickForm_button
-?>
index fa7c64506a6eb630ac02140538b94542c652f1a4..79ab00a44e2e169e7c132c53b8b1ff96af52fb76 100644 (file)
@@ -46,14 +46,13 @@ class MoodleQuickForm_cancel extends MoodleQuickForm_submit
         }
         return parent::onQuickFormEvent($event, $arg, $caller);
     } // end func onQuickFormEvent
-    
+
     function getFrozenHtml(){
         return HTML_QuickForm_submit::getFrozenHtml();
     }
-    
+
     function freeze(){
         return HTML_QuickForm_submit::freeze();
     }
     // }}}
 } //end class MoodleQuickForm_cancel
-?>
\ No newline at end of file
index d3c026214a6f28490839bbfa0cd9d968decb3a7b..c621213bba57ae4cf24e44fedb5c01d05fb935cb 100644 (file)
@@ -124,4 +124,3 @@ class MoodleQuickForm_checkbox extends HTML_QuickForm_checkbox{
         return $output;
     } //end func getFrozenHtml
 }
-?>
\ No newline at end of file
index ab0e9216629910fe2fffbc73d70440238e4d584a..5c90293ffdc6c5a0411c944efe507b8f0f93a4df 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 global $CFG;
 require_once "$CFG->libdir/form/group.php";
 
@@ -149,4 +149,3 @@ class MoodleQuickForm_choosecoursefile extends MoodleQuickForm_group
     } // end func onQuickFormEvent
 
 }
-?>
index 0429282f86eb981d482579e2c78f975157955358..4d8ecf516c5104044eb084dee3824ae56dab98d8 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 global $CFG;
 require_once "$CFG->libdir/form/group.php";
 
@@ -156,4 +156,3 @@ class MoodleQuickForm_choosecoursefileorimsrepo extends MoodleQuickForm_group
     } // end func onQuickFormEvent
 
 }
-?>
index f94058665c0d0940d775f9e3022b61f72759c96d..2f5cbdf31122da2fb0ae83b129204fb2d51a3331 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -238,4 +238,3 @@ class MoodleQuickForm_date_selector extends MoodleQuickForm_group
 
     // }}}
 }
-?>
index d1feef157d47cdd5398cb7302ff1f9401f221923..25c2098ff6a40427c2c71f777869f7fc767bb893 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -260,4 +260,3 @@ class MoodleQuickForm_date_time_selector extends MoodleQuickForm_group{
 
     // }}}
 }
-?>
index 10fcbe1f50bc9001746d8f6bcebb0fbff1df53f7..ba4082d17e43fe7a6f62c6dd2052df9ba66373a3 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
index b43273f2e151f9e088aca5c95544668adcd66ad5..a8581d68c8fba5e1d9845de9e2b91138f7f46d1c 100644 (file)
@@ -89,5 +89,3 @@ function helplink($page, $linktext='', $module='moodle'){
     global $CFG;
     return "<a href=\"$CFG->wwwroot/help.php?module=$module&amp;file=$page.html\">$linktext</a>";
 }
-
-?>
index 6d7726f11b66c0346cbe936c20d461ee15f500bb..b34062a06dde20028624cabbf893ce3c0624f5b2 100644 (file)
@@ -75,4 +75,3 @@ class MoodleQuickForm_file extends HTML_QuickForm_file{
     }
 
 }
-?>
\ No newline at end of file
index ce08b6b5efd9bf80bf622f45b3eaed37efce1ac6..49f4ab0fa8963a98bbc3f51cd157b310fe9ec020 100644 (file)
@@ -124,4 +124,3 @@ class MoodleQuickForm_format extends MoodleQuickForm_select{
     }
 
 }
-?>
index a8f5633790c23e24519811170da73ed281ec742e..1f91e48b9466a2e5fac22b1da6d4a4b2bad10299 100644 (file)
@@ -74,4 +74,3 @@ class MoodleQuickForm_group extends HTML_QuickForm_group{
         }
     }
 }
-?>
\ No newline at end of file
index cc6425b5bdc1fe55a2e8b0072de81e892a0458f6..4825c2337d19bc999128c5142cf3232d3dde8405 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-// $Id$
 
 require_once 'HTML/QuickForm/header.php';
 
@@ -67,4 +66,3 @@ class MoodleQuickForm_header extends HTML_QuickForm_header
         return $this->_helpbutton;
     }
 } //end class MoodleQuickForm_header
-?>
index 1c5997d85da30b5364c4ab5f8bd3de9e6671a04f..4aa14a7a04d25dd4a3d4f086f108769f8c05b3e5 100644 (file)
@@ -39,4 +39,3 @@ class MoodleQuickForm_hidden extends HTML_QuickForm_hidden{
         return '';
     }
 }
-?>
\ No newline at end of file
index 853979e7e1cca208f43de899078031ca12c76096..c1961d7629a4ae43420ca8582c689654316365d2 100644 (file)
@@ -97,4 +97,3 @@ class MoodleQuickForm_htmleditor extends MoodleQuickForm_textarea{
         return $html . $this->_getPersistantData();
     } //end func getFrozenHtml
 }
-?>
index 7238b292d63bd90e594b8ff780e41c3bb500596a..aaec045693d23a85cb4ae57076b374ae9dffa3fa 100644 (file)
@@ -12,7 +12,7 @@ require_once "$CFG->libdir/form/select.php";
 class MoodleQuickForm_modgrade extends MoodleQuickForm_select{
 
     var $_hidenograde = false;
-    
+
     /**
      * Class constructor
      *
@@ -71,4 +71,3 @@ class MoodleQuickForm_modgrade extends MoodleQuickForm_select{
     }
 
 }
-?>
\ No newline at end of file
index 0f91e668ed11a6fc9362684238bc8eb69cf76023..0b7b30536ca81df92184318bf66765419bf79acb 100644 (file)
@@ -51,4 +51,3 @@ class MoodleQuickForm_modvisible extends MoodleQuickForm_select{
         return parent::onQuickFormEvent($event, $arg, $caller);
     }
 }
-?>
\ No newline at end of file
index a17b8327a61b4b30b279e9c222ae0805974f0d4e..33ba3bd6158170dea30822d01d68b98f0f7523d7 100644 (file)
@@ -48,4 +48,3 @@ class MoodleQuickForm_password extends HTML_QuickForm_password{
         return $this->_helpbutton;
     }
 }
-?>
\ No newline at end of file
index 59dad0acdde903f2a4de0e03e5f97f5edfe206a3..9c485b23c0e29a4a993b509b4191bdd4a1ec22ba 100644 (file)
@@ -17,7 +17,7 @@ class MoodleQuickForm_passwordunmask extends MoodleQuickForm_password {
     function MoodleQuickForm_passwordunmask($elementName=null, $elementLabel=null, $attributes=null) {
         parent::MoodleQuickForm_password($elementName, $elementLabel, $attributes);
     }
-    
+
     function toHtml() {
         global $PAGE;
         if ($this->_flagFrozen) {
@@ -32,4 +32,3 @@ class MoodleQuickForm_passwordunmask extends MoodleQuickForm_password {
     } //end func toHtml
 
 }
-?>
\ No newline at end of file
index 2347af82c8064c6ddd829423c7bd121d74f9f640..779e8d5895fd4cb280703ee29ed420ff6a62949a 100644 (file)
@@ -42,4 +42,3 @@ class MoodleQuickForm_questioncategory extends MoodleQuickForm_selectgroups {
     }
 
 }
-?>
\ No newline at end of file
index 66384bda2b2d8a85bf6593c147952633c7b7f073..abc66b76b8e314962d7a6b4419bb0656d826a693 100644 (file)
@@ -82,4 +82,3 @@ class MoodleQuickForm_radio extends HTML_QuickForm_radio{
         return '<span>' . parent::toHtml() . '</span>';
     }
 }
-?>
\ No newline at end of file
index 81bd2477e1e46366df48ed16715f4c68f8436709..2613e227b95c611e0001a91e18fab725a197280c 100644 (file)
@@ -23,7 +23,7 @@ class MoodleQuickForm_recaptcha extends HTML_QuickForm_input {
      * @var string
      */
     var $_helpbutton='';
-    
+
     var $_https=false;
 
     /**
@@ -61,7 +61,7 @@ class MoodleQuickForm_recaptcha extends HTML_QuickForm_input {
         }
         $error = $attributes['error_message'];
         unset($attributes['error_message']);
-        
+
         $strincorrectpleasetryagain = get_string('incorrectpleasetryagain', 'auth');
         $strenterthewordsabove = get_string('enterthewordsabove', 'auth');
         $strenterthenumbersyouhear = get_string('enterthenumbersyouhear', 'auth');
@@ -83,11 +83,11 @@ class MoodleQuickForm_recaptcha extends HTML_QuickForm_input {
 <div><a href="javascript:Recaptcha.reload()">' . $strgetanothercaptcha . '</a></div>
 <div class="recaptcha_only_if_image"><a href="javascript:Recaptcha.switch_type(\'audio\')">' . $strgetanaudiocaptcha . '</a></div>
 <div class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type(\'image\')">' . $strgetanimagecaptcha . '</a></div>
-</div>'; 
+</div>';
 
         return $html . recaptcha_get_html($CFG->recaptchapublickey, $error, $this->_https);
     }
-    
+
     /**
      * set html for help button
      *
@@ -109,7 +109,7 @@ class MoodleQuickForm_recaptcha extends HTML_QuickForm_input {
         }
         $this->_helpbutton=call_user_func_array($function, $helpbuttonargs);
     }
-    
+
     /**
      * get html for help button
      *
@@ -137,5 +137,3 @@ class MoodleQuickForm_recaptcha extends HTML_QuickForm_input {
         return true;
     }
 }
-
-?>
index bdb81c35733213b45633bbbdb0e18afacde3a52a..83c17871414643ed27b064d1dfd6fa75898a1430 100644 (file)
@@ -129,4 +129,3 @@ class MoodleQuickForm_select extends HTML_QuickForm_select{
         }
     }
 }
-?>
index 733b4154020df4d7dbde327b9a62db181530fe34..afc760204de845e9de3c18095f33a69bd9096e04 100644 (file)
@@ -31,7 +31,7 @@ require_once('HTML/QuickForm/element.php');
  * @access       public
  */
 class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
-    
+
     // {{{ properties
 
     /** add choose option */
@@ -45,10 +45,10 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
      * @access    private
      */
     var $_optGroups = array();
-    
+
     /**
      * Default values of the SELECT
-     * 
+     *
      * @var       string
      * @since     1.0
      * @access    private
@@ -62,15 +62,15 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
      */
     var $_helpbutton='';
     var $_hiddenLabel=false;
-       
+
     /**
      * Class constructor
-     * 
+     *
      * @param     string    Select name attribute
      * @param     mixed     Label(s) for the select
      * @param     mixed     Data to be used to populate options
      * @param     mixed     An array whose keys are labels for optgroups and whose values are arrays similar to those passed
-     *                          to the select element with keys that are values for options and values are strings for display.  
+     *                          to the select element with keys that are values for options and values are strings for display.
      * @param     mixed     Either a typical HTML attribute string or an associative array
      * @param     bool      add standard moodle "Choose..." option as first item
      * @since     1.0
@@ -87,14 +87,14 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
             $this->loadArrayOptGroups($optgrps);
         }
     } //end constructor
-    
+
     // }}}
     // {{{ apiVersion()
 
 
     /**
      * Sets the default values of the select box
-     * 
+     *
      * @param     mixed    $values  Array or comma delimited string of selected values
      * @since     1.0
      * @access    public
@@ -111,13 +111,13 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
             $this->_values = array($values);
         }
     } //end func setSelected
-    
+
     // }}}
     // {{{ getSelected()
 
     /**
      * Returns an array of the selected values
-     * 
+     *
      * @since     1.0
      * @access    public
      * @return    array of selected values
@@ -132,7 +132,7 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
 
     /**
      * Sets the input field name
-     * 
+     *
      * @param     string    $name   Input field name attribute
      * @since     1.0
      * @access    public
@@ -142,13 +142,13 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
     {
         $this->updateAttributes(array('name' => $name));
     } //end func setName
-    
+
     // }}}
     // {{{ getName()
 
     /**
      * Returns the element name
-     * 
+     *
      * @since     1.0
      * @access    public
      * @return    string
@@ -163,7 +163,7 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
 
     /**
      * Returns the element name (possibly with brackets appended)
-     * 
+     *
      * @since     1.0
      * @access    public
      * @return    string
@@ -198,7 +198,7 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
 
     /**
      * Returns an array of the selected values
-     * 
+     *
      * @since     1.0
      * @access    public
      * @return    array of selected values
@@ -213,7 +213,7 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
 
     /**
      * Sets the select field size, only applies to 'multiple' selects
-     * 
+     *
      * @param     int    $size  Size of select  field
      * @since     1.0
      * @access    public
@@ -223,13 +223,13 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
     {
         $this->updateAttributes(array('size' => $size));
     } //end func setSize
-    
+
     // }}}
     // {{{ getSize()
 
     /**
      * Returns the select field size
-     * 
+     *
      * @since     1.0
      * @access    public
      * @return    int
@@ -244,7 +244,7 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
 
     /**
      * Sets the select mutiple attribute
-     * 
+     *
      * @param     bool    $multiple  Whether the select supports multi-selections
      * @since     1.2
      * @access    public
@@ -258,13 +258,13 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
             $this->removeAttribute('multiple');
         }
     } //end func setMultiple
-    
+
     // }}}
     // {{{ getMultiple()
 
     /**
      * Returns the select mutiple attribute
-     * 
+     *
      * @since     1.2
      * @access    public
      * @return    bool    true if multiple select, false otherwise
@@ -276,7 +276,7 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
 
     /**
      * Loads the options from an associative array
-     * 
+     *
      * @param     array    $arr     Associative array of options
      * @param     mixed    $values  (optional) Array or comma delimited string of selected values
      * @since     1.0
@@ -297,13 +297,13 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
             $this->addOptGroup($key, $val);
         }
         return true;
-    } 
+    }
     /**
      * Adds a new OPTION to the SELECT
      *
      * @param     string    $text       Display text for the OPTION
      * @param     string    $value      Value for the OPTION
-     * @param     mixed     $attributes Either a typical HTML attribute string 
+     * @param     mixed     $attributes Either a typical HTML attribute string
      *                                  or an associative array
      * @since     1.0
      * @access    public
@@ -320,11 +320,11 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
         $index = count($this->_optGroups);
         $this->_optGroups[$index] = array('attr' => $attributes);
         $this->loadArrayOptions($index, $value);
-    } 
-    
+    }
+
     /**
      * Loads the options from an associative array
-     * 
+     *
      * @param     array    $arr     Associative array of options
      * @param     mixed    $values  (optional) Array or comma delimited string of selected values
      * @since     1.0
@@ -345,14 +345,14 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
             $this->addOption($optgroup, $val, $key);
         }
         return true;
-    }   
+    }
 
     /**
      * Adds a new OPTION to an optgroup
      *
      * @param     string    $text       Display text for the OPTION
      * @param     string    $value      Value for the OPTION
-     * @param     mixed     $attributes Either a typical HTML attribute string 
+     * @param     mixed     $attributes Either a typical HTML attribute string
      *                                  or an associative array
      * @since     1.0
      * @access    public
@@ -376,7 +376,7 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
             $this->_updateAttrArray($attributes, array('value' => $value));
         }
         $this->_optGroups[$optgroup]['options'][] = array('text' => $text, 'attr' => $attributes);
-    } 
+    }
 
     /**
      * Returns the SELECT in HTML
@@ -433,13 +433,13 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
             return $strHtml . $tabs . '</select>';
         }
     } //end func toHtml
-    
+
     // }}}
     // {{{ getFrozenHtml()
 
     /**
      * Returns the value of field without HTML tags
-     * 
+     *
      * @since     1.0
      * @access    public
      * @return    string
@@ -519,7 +519,7 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
             return $this->_prepareValue($cleanValue, $assoc);
         }
     }
-    
+
     // }}}
     // {{{ onQuickFormEvent()
 
@@ -608,6 +608,5 @@ class MoodleQuickForm_selectgroups extends HTML_QuickForm_element {
         } else {
             return 'default';
         }
-    } 
+    }
 }
-?>
index 5e697a7d81580e21e73092b65744d84b67533f45..53e5d71e647f31e41752e961d2c8fc3b029c33b8 100755 (executable)
@@ -160,4 +160,3 @@ class MoodleQuickForm_selectwithlink extends HTML_QuickForm_select{
         }
     }
 }
-?>
index 1f4df1c6eaa263967cabfe2655f98980ae077708..f451b8d6aca79eff3d2f40f3947d4d917650f322 100644 (file)
@@ -52,4 +52,3 @@ class MoodleQuickForm_selectyesno extends MoodleQuickForm_select{
     }
 
 }
-?>
\ No newline at end of file
index 7ff6f32ced54ec4445be123f0e85973799111e34..ee8b4daa8f130556d48afe055502f83aecbabcff 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -92,4 +92,3 @@ class duration_form_element_test extends UnitTestCase {
         $this->assertEqual($el->exportValue(array('testel' => array('number' => 20, 'timeunit' => 1, 'enabled' => 1))), array('testel' => 20));
     }
 }
-?>
index 56274c09c5a3a3080eac597b476501a3b7d6f7be..1c976ee67a64cef6260812b32623296459219f0b 100644 (file)
@@ -53,4 +53,3 @@ class MoodleQuickForm_static extends HTML_QuickForm_static{
         return $this->_elementTemplateType;
     }
 }
-?>
\ No newline at end of file
index e990721051438b94ae3dde793b45dfdf1bcb34de..3b6fd906f22d329280a77b65f110c5f954424ceb 100644 (file)
@@ -57,10 +57,9 @@ class MoodleQuickForm_submit extends HTML_QuickForm_submit {
             return 'default';
         }
     }
-    
+
     function freeze(){
         $this->_flagFrozen = true;
     }
-    
+
 }
-?>
\ No newline at end of file
index fca8f5fec5defde501c1bcbdb97df8c69a8c523f..d9904c8f1eaf7071ca4f598e37f84d0e6e171608 100644 (file)
@@ -7,15 +7,14 @@ class MoodleQuickForm_submitlink extends MoodleQuickForm_submit {
     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 . "\';";
-        $onmouseout = "window.status=\'\';"; 
+        $onmouseout = "window.status=\'\';";
 
-        return "<noscript>" . parent::toHtml() . '</noscript><script type="text/javascript">' . $this->_js . "\n" 
-             . 'document.write(\'<a href="#" onclick="' . $this->_onclick . '" onmouseover="' . $onmouseover . '" onmouseout="' . $onmouseout . '">' 
+        return "<noscript>" . parent::toHtml() . '</noscript><script type="text/javascript">' . $this->_js . "\n"
+             . 'document.write(\'<a href="#" onclick="' . $this->_onclick . '" onmouseover="' . $onmouseover . '" onmouseout="' . $onmouseout . '">'
              . $text . "</a>');\n</script>";
     }
 }
-?>
index bc2ba49812e1f69c4496c5df3bdc3e5c673d8bbe..400f821aaccd21ba699cc038136238fab0ab743d 100644 (file)
@@ -249,4 +249,3 @@ class MoodleQuickForm_tags extends MoodleQuickForm_group {
         return array($this->getName() => $tags);
     }
 }
-?>
index fc4dc04fa965dc98213754501b49815921bc918a..21a7a8921520097d1ee21818bf8c2327b1d4fc3f 100644 (file)
@@ -114,4 +114,3 @@ class MoodleQuickForm_textarea extends HTML_QuickForm_textarea{
         }
     }
 }
-?>
\ No newline at end of file
index 6ea41b1117e65efb5fa2c81d0edca0de8cabf4ca..f7d5dc0798de7b504eff47b1b4794fae7467625f 100755 (executable)
@@ -26,7 +26,7 @@ class MoodleQuickForm_texturl extends HTML_QuickForm_text{
         parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
         repository_head_setup();
     }
-    
+
     function setHiddenLabel($hiddenLabel){
         $this->_hiddenLabel = $hiddenLabel;
     }
index 2c82eeb1a7106b269bdc0ac5024571b53c58be3a..30dab1ae7bd7c783fc4daf12d6915070ea58a59a 100755 (executable)
@@ -29,7 +29,7 @@ class MoodleQuickForm_url extends HTML_QuickForm_text{
         parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
         repository_head_setup();
     }
-    
+
     function setHiddenLabel($hiddenLabel){
         $this->_hiddenLabel = $hiddenLabel;
     }
index 48e373c1f3de09b134a77069361cad5f53c4f157..4e9053b3177a0a2f14eb4047fea919309f0836d1 100644 (file)
@@ -67,4 +67,3 @@ class MoodleQuickForm_warning extends HTML_QuickForm_static{
         return $this->_elementTemplateType;
     }
 }
-?>
index 6053b737cfb397b142777c552f0a96a5b3f2c547..f48ae52cafd0d5391f5f11738f1091bfa521d7a9 100644 (file)
@@ -798,4 +798,3 @@ class grade_grade extends grade_object {
         $completion->inform_grade_changed($cm, $this->grade_item, $this, $deleted);
      }
 }
-?>
index 62b752bd3c5769963737d9ee6ad5c8080a3f70a8..56cf6bcdba41d12312d2d689c2faec3e33daa89a 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -1996,4 +1996,3 @@ class grade_item extends grade_object {
         }
     }
 }
-?>
index 7fde11cff406ce85d644b244705111e4b1bb86cb..72c9ec618e6c864f694fb36f8080dda70f57e972 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -173,7 +173,7 @@ abstract class grade_object {
 
         global $DB;
         if ($datas = $DB->get_records_select($table, $wheresql, $params)) {
-            
+
             $result = array();
             foreach($datas as $data) {
                 $instance = new $classname();
@@ -183,7 +183,7 @@ abstract class grade_object {
             return $result;
 
         } else {
-            
+
             return false;
         }
     }
@@ -346,8 +346,8 @@ abstract class grade_object {
     }
 
     /**
-     * Called immediately after the object data has been inserted, updated, or 
-     * deleted in the database. Default does nothing, can be overridden to 
+     * Called immediately after the object data has been inserted, updated, or
+     * deleted in the database. Default does nothing, can be overridden to
      * hook in special behaviour.
      *
      * @param bool $deleted
@@ -355,4 +355,3 @@ abstract class grade_object {
     function notify_changed($deleted) {
     }
 }
-?>
index c6648f6a24cba49c708dfed13598ae6b03ab1902..2cb6a3cf456c221877acc49c2b701cc321d9163d 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -372,4 +372,3 @@ class grade_outcome extends grade_object {
         return $retval;
     }
 }
-?>
index d9666a7190e46b1ae6a70fc3ec7feaac940cf1e8..4b317c97bfe13e94c637757d32a040430aff75d5 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -287,4 +287,3 @@ class grade_scale extends grade_object {
         return false;
     }
 }
-?>
index 0b7f15a7695bf15024cf06bf3a9dcfcc75b69cb6..788d583fae31e253a0be5085c32fdff4977dfe5e 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -470,4 +470,3 @@ class grade_category_test extends grade_test {
         return $grade->rawgrade;
     }
 }
-?>
index 9dafcdad09fb8ecebc9b26ca00eded1dc0b0833e..d3bef89413891b9fec9371d9531fb5b3aa97fd72 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -188,4 +188,3 @@ class grade_grade_test extends grade_test {
 
 
 }
-?>
index 62afda742467014d15d008347b36816115b5ec7d..91bb8197740175c0a38d14eba9a90d2d9a605f25 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -507,4 +507,3 @@ class grade_item_test extends grade_test {
     }
 
 }
-?>
index 366c2081e31c48140fcc5eaef450ece46b8216a1..2b7db990f6ee3a5e8d9e2b181bfc7744149d4567 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -106,4 +106,3 @@ class grade_outcome_test extends grade_test {
         $this->assertEqual(count($this->grade_outcomes), count($grade_outcomes));
     }
 }
-?>
index 1ba6c9362d1d7f753b1ebd90c041daeeba479c55..8bdcd0bdc3a16d4b16fae6ba993e79e03aaf51ba 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -127,4 +127,3 @@ class grade_scale_test extends grade_test {
         $this->assertEqual(preg_replace('/\s*,\s*/', ',', $this->scale[0]->scale), $scale->scale);
     }
 }
-?>
index 7f1385893dfdf3886c663e0c2bdd5e78747d91e9..81543ee3bd0cbb418f55cac703f82134b2e17ba7 100644 (file)
@@ -197,4 +197,4 @@ abstract class file_archive implements Iterator {
      */
     //public abstract function valid();
 
-}
\ No newline at end of file
+}
index 10dd48956728a1d832964397851bfb7ad70d7d41..38b8b5a12a846dd164716240bf76775bc0b1b55b 100644 (file)
@@ -74,4 +74,4 @@ abstract class file_packer {
      * @return array of file infos
      */
     public abstract function list_files($archivefile);
-}
\ No newline at end of file
+}
index 86f0dd3b2ebf4f9783450be2749bd34be798df68..fb9be145d5a871f3a827606a319d821a75e5eb59 100644 (file)
@@ -470,5 +470,3 @@ abstract class portfolio_module_caller_base extends portfolio_caller_base {
         return get_string('exportingcontentfrom', 'portfolio', $this->display_name() . ': ' . $this->cm->name);
     }
 }
-
-?>
index 5a0c36a43b6b796ff0a11045d26022bf3d7bca6b..22d79016626035c8df693209f6a165a71ea42420 100644 (file)
@@ -183,5 +183,3 @@ define('PORTFOLIO_ADD_ICON_LINK', 3);
 */
 define('PORTFOLIO_ADD_TEXT_LINK', 4);
 
-
-?>
index 2e4c5fd004117e8583935a91e214a0faeb54555c..3c249f0a6c29e6a6a99105f3b5b2b346536bd6fa 100644 (file)
@@ -85,4 +85,3 @@ class portfolio_plugin_exception extends portfolio_exception {}
 * exception for interacting with the button class
 */
 class portfolio_button_exception extends portfolio_exception {}
-?>
index 7a13499867c1fd2aca906eca818749107a8b5f33..da50f0ff26dfd87a71b15afcbd81330eebf77939 100644 (file)
@@ -805,5 +805,3 @@ class portfolio_exporter {
     }
 
 }
-
-?>
index 982d3f60bfe5cf8ad9685ce758797e35d742d093..88d14d152c3c7c0f44c4b9d36e1f3daa9d6b3ca1 100644 (file)
@@ -117,6 +117,3 @@ class portfolio_format_leap extends portfolio_format_rich { }
 * it's commented out in portfolio_supported_formats so cannot currently be used.
 */
 class portfolio_format_mbkp extends portfolio_format_rich {}
-
-
-?>
index 0892d2cab6a7617614f97c33032c4a307527308b..6559eff60fd21b6ebefad25018a7a2c26ddfdd20 100644 (file)
@@ -269,5 +269,3 @@ class portfolio_instance_select extends moodleform {
         $this->add_action_buttons(true, get_string('next'));
     }
 }
-
-?>
index 71f59c18d6833272a21ee39535d651f9d6e26a56..56055d2e0915feda67dbe68ca8b657e5c0763504 100644 (file)
@@ -772,5 +772,3 @@ abstract class portfolio_plugin_pull_base extends portfolio_plugin_base {
     }
 
 }
-
-?>
index 6dd828763e2ff41f65f03faf5bf4879d6b77e9af..39139f4c892ea8def1ebe53468d9bfc9e572b1a6 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -70,4 +70,3 @@
     define ('XMLDB_LINEFEED', "\n");
     define ('XMLDB_PHP_HEADER', '    if ($result && $oldversion < XXXXXXXXXX) {' . XMLDB_LINEFEED);
     define ('XMLDB_PHP_FOOTER', '    }' . XMLDB_LINEFEED);
-?>
index 8ac5546dbb88d453a9959c621f868fe940865291..ceffdc413ba244593223457a45973431ce60a975 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -802,5 +802,3 @@ class XMLDBField extends xmldb_field {
 
 }
 /// Deprecated API ends here
-
-?>
index 85fc25dffd5afdd3bae8a24525ca6989c3c0770e..62768e3deba525e9f6f700e399a944c475749e6e 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -197,5 +197,3 @@ class xmldb_file extends xmldb_object {
         return $result;
     }
 }
-
-?>
index b4d6d2b713313c0b1c478737137d28517f360e2f..dbbb30f0ace07b521489a2c2cfa65e5f6f6882b7 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -282,5 +282,3 @@ class XMLDBIndex extends xmldb_index {
 
 }
 /// Deprecated API ends here
-
-?>
index bf77741cf349bafda0638a1723017209e18f39fa..cf429eb8776bc5840149e48f0712beae39278855 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -476,5 +476,3 @@ class XMLDBKey extends xmldb_key {
 
 }
 /// Deprecated API ends here
-
-?>
index 4da1e6b48954d0e14dd9e8d985ba3a35cc3587be..a5c182e19a9d425fd241a13c53adfdc59556cee7 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -408,12 +408,12 @@ class xmldb_object {
 
     /**
      * This function will perform the central debug of all the XMLDB classes
-     * being called automatically every time one error is found. Apart from 
+     * being called automatically every time one error is found. Apart from
      * the main actions performed in it (XMLDB agnostic) it looks for one
      * function called xmldb_debug() and invokes it, passing both the
-     * message code and the whole object. 
+     * message code and the whole object.
      * So, to perform custom debugging just add such function to your libs.
-     * 
+     *
      * Call to the external hook function can be disabled by request by
      * defining XMLDB_SKIP_DEBUG_HOOK
      */
@@ -447,7 +447,7 @@ class xmldb_object {
             $string = str_replace($foundconcats,array_keys($foundconcats),$string);
         }
 
-    /// Extract all the quoted elements from the string (skipping 
+    /// Extract all the quoted elements from the string (skipping
     /// backslashed quotes that are part of the content.
         preg_match_all("/(''|'.*?[^\\\\]')/is", $string, $matches);
         foreach (array_unique($matches[0]) as $key=>$value) {
@@ -481,5 +481,3 @@ class xmldb_object {
         return $arr;
     }
 }
-
-?>
index dea35a86e6b8a3e2c30dbf90b080b3f953a28375..53ab00dfcace6ba5347872d330dd980ead73e308 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -381,5 +381,3 @@ class XMLDBStatement extends xmldb_statement {
 
 }
 /// Deprecated API ends here
-
-?>
index 481cc528d1501d1c5de0bb267d4f3b44b4781053..252639a8d8790079235a500321d1991d005c2a5a 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -715,5 +715,3 @@ class xmldb_structure extends xmldb_object {
         }
     }
 }
-
-?>
index 29f0afba25710ffabc8ef51eb1d5d86460d679bf..8f3712c5c2c044aa3317110f996fda3b0e84a6c5 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -835,5 +835,3 @@ class XMLDBTable extends xmldb_table {
 
 }
 /// Deprecated API ends here
-
-?>