]> 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 14:55:15 +0000 (14:55 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 1 Nov 2009 14:55:15 +0000 (14:55 +0000)
153 files changed:
mod/choice/backuplib.php
mod/choice/db/access.php
mod/choice/db/install.php
mod/choice/db/upgrade.php
mod/choice/index.php
mod/choice/lib.php
mod/choice/mod_form.php
mod/choice/report.php
mod/choice/restorelib.php
mod/choice/version.php
mod/choice/view.php
mod/data/backuplib.php
mod/data/comment.php
mod/data/comment_form.php
mod/data/db/access.php
mod/data/db/install.php
mod/data/db/upgrade.php
mod/data/edit.php
mod/data/export.php
mod/data/export_form.php
mod/data/field.php
mod/data/field/checkbox/field.class.php
mod/data/field/date/field.class.php
mod/data/field/file/field.class.php
mod/data/field/latlong/field.class.php
mod/data/field/menu/field.class.php
mod/data/field/multimenu/field.class.php
mod/data/field/number/field.class.php
mod/data/field/picture/field.class.php
mod/data/field/radiobutton/field.class.php
mod/data/field/text/field.class.php
mod/data/field/textarea/field.class.php
mod/data/field/url/field.class.php
mod/data/filter.php
mod/data/import.php
mod/data/index.php
mod/data/mod_form.php
mod/data/preset.php
mod/data/rate.php
mod/data/report.php
mod/data/restorelib.php
mod/data/rsslib.php
mod/data/settings.php
mod/data/simpletest/test_data_portfolio_callers.php
mod/data/simpletest/testpreset.php
mod/data/tabs.php
mod/data/templates.php
mod/data/version.php
mod/data/view.php
mod/feedback/README.txt
mod/feedback/analysis.php
mod/feedback/analysis_course.php
mod/feedback/analysis_to_excel.php
mod/feedback/backuplib.php
mod/feedback/choose_group_form.php
mod/feedback/complete.php
mod/feedback/complete_guest.php
mod/feedback/db/access.php
mod/feedback/db/install.php
mod/feedback/db/upgrade.php
mod/feedback/delete_completed.php
mod/feedback/delete_completed_form.php
mod/feedback/delete_item.php
mod/feedback/delete_item_form.php
mod/feedback/delete_template_form.php
mod/feedback/easy_excel.php
mod/feedback/edit.php
mod/feedback/edit_form.php
mod/feedback/edit_item.php
mod/feedback/export.php
mod/feedback/index.php
mod/feedback/item/captcha/captcha_form.php
mod/feedback/item/captcha/lib.php
mod/feedback/item/captcha/print_captcha.php
mod/feedback/item/feedback_item_class.php
mod/feedback/item/feedback_item_form_class.php
mod/feedback/item/info/info_form.php
mod/feedback/item/info/lib.php
mod/feedback/item/label/label_form.php
mod/feedback/item/label/lib.php
mod/feedback/item/multichoice/lib.php
mod/feedback/item/multichoice/multichoice_form.php
mod/feedback/item/multichoicerated/lib.php
mod/feedback/item/multichoicerated/multichoicerated_form.php
mod/feedback/item/numeric/lib.php
mod/feedback/item/numeric/numeric_form.php
mod/feedback/item/textarea/lib.php
mod/feedback/item/textarea/textarea_form.php
mod/feedback/item/textfield/lib.php
mod/feedback/item/textfield/textfield_form.php
mod/feedback/mapcourse.php
mod/feedback/mod_form.php
mod/feedback/print.php
mod/feedback/restorelib.php
mod/feedback/tabs.php
mod/feedback/unmapcourse.php
mod/feedback/use_templ.php
mod/feedback/use_templ_form.php
mod/feedback/version.php
mod/feedback/view.php
mod/forum/backuplib.php
mod/forum/db/access.php
mod/forum/db/install.php
mod/forum/db/messages.php
mod/forum/db/upgrade.php
mod/forum/discuss.php
mod/forum/index.php
mod/forum/lib.php
mod/forum/markposts.php
mod/forum/mod_form.php
mod/forum/post.php
mod/forum/post_form.php
mod/forum/rate.php
mod/forum/rate_ajax.js
mod/forum/rate_ajax.php
mod/forum/report.php
mod/forum/restorelib.php
mod/forum/rsslib.php
mod/forum/search.php
mod/forum/settings.php
mod/forum/settracking.php
mod/forum/simpletest/test_forum_portfolio_callers.php
mod/forum/simpletest/testmodforumlib.php
mod/forum/subscribe.php
mod/forum/subscribers.php
mod/forum/user.php
mod/forum/version.php
mod/forum/view.php
mod/glossary/approve.php
mod/glossary/backuplib.php
mod/glossary/comment.php
mod/glossary/comment_form.php
mod/glossary/comments.php
mod/glossary/deleteentry.php
mod/glossary/edit.php
mod/glossary/edit_form.php
mod/glossary/editcategories.html
mod/glossary/editcategories.php
mod/glossary/exportentry.php
mod/glossary/filter.php
mod/glossary/import.html
mod/glossary/import.php
mod/glossary/index.php
mod/glossary/lib.php
mod/glossary/mod_form.php
mod/glossary/print.php
mod/glossary/rate.php
mod/glossary/report.php
mod/glossary/restorelib.php
mod/glossary/rsslib.php
mod/glossary/settings.php
mod/glossary/showentry.php
mod/glossary/sql.php

index ec2d7b7760094ccc5012f1797747d4a60ab321ca..b83fd4d6a8d68194705a2bce4ac4e24494566702 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
     //This php script contains all the stuff to backup/restore
     //choice mods
 
                                  FROM {choice_answers} s
                                  WHERE s.choiceid = ?", array($instanceid));
     }
-?>
+
index a75fc9ec6796b9b1f785bf5510139da895e46b6a..d6471ca4b90277bfb5d5a8fb9c0ca5afb85da447 100644 (file)
@@ -79,4 +79,4 @@ $mod_choice_capabilities = array(
     )
 );
 
-?>
+
index c34218a04dc49b9120cf68a341a13b3b2ab51b21..c3caa11fa1d216abec4688f9c1b041160e89e0f2 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 // This file replaces:
 //   * STATEMENTS section in db/install.xml
index 8ea09abb724d3bce5a8653ab28413cfd91446ef2..0ae71dde34b8b0f1bf7c52777aed38bc6f712ec4 100644 (file)
@@ -1,6 +1,6 @@
-<?php  //$Id$
+<?php
 
-// This file keeps track of upgrades to 
+// This file keeps track of upgrades to
 // the choice module
 //
 // Sometimes, changes between versions involve
@@ -57,4 +57,4 @@ function xmldb_choice_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index 06563c297ad9b710b8c89012be2e78d143646074..a83c05c9b7a324e3da8344ce8b610562aeb2cb2a 100644 (file)
@@ -97,4 +97,4 @@
 
     echo $OUTPUT->footer();
 
-?>
+
index 40ecb1769613e9b44891d3165045c0809bb7fcb7..b6029fdf775f5116b3ae1570fb64c6e401ade81f 100644 (file)
@@ -791,7 +791,7 @@ function choice_get_post_actions() {
 /**
  * Implementation of the function for printing the form elements that control
  * whether the course reset functionality affects the choice.
- * 
+ *
  * @param object $mform form passed by reference
  */
 function choice_reset_course_form_definition(&$mform) {
index a9f84da258ae179bf1451b8f79ff64656dd6b561..19b45119bc92929b78f8deb6b32801607010db3f 100644 (file)
@@ -136,4 +136,4 @@ class mod_choice_mod_form extends moodleform_mod {
     }
 
 }
-?>
+
index c15ebce9b19f9d729c7e3780656ee7bca6857f32..89458f2afe4f6620d542d3772e9d5e07e357d08c 100644 (file)
     }
     echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 3249c097e10c4fa00b8ab5ec8433b2fc58e7f05b..0712fe42cfed7f480d704e7325d2e7d310725193 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
     //This php script contains all the stuff to backup/restore
     //choice mods
 
@@ -498,4 +498,4 @@ function choice_options_restore_mods($choiceid,$info,$restore) {
         }
         return $status;
     }
-?>
+
index dfebaf1e04f09ee82469e76e2cf608c7ff482f5e..d83882e5a736259eec25d54112b98adf4a260553 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the module version etc.
@@ -9,4 +9,4 @@ $module->version  = 2009042001;
 $module->requires = 2009041700;  // Requires this Moodle version
 $module->cron     = 0;
 
-?>
+
index be7cd8bc98a16bbd6ced80c4c61263e272528184..c951db2f5eee958a14587798e9186830a39deb39 100644 (file)
 /// Mark as viewed
     $completion=new completion_info($course);
     $completion->set_module_viewed($cm);
-?>
+
index 3065e8bf89ab1e12f3fb5f2e7bf5a798fed015c4..4ad6ebbb0c94c908cd769ff53e6a20ba9b01ddac 100644 (file)
@@ -1,4 +1,4 @@
-<?php //Id:$
+<?php
 
 //This php script contains all the stuff to backup/restore data mod
 
index 31ff2b026ef01655470a1f578d14d5052e7e6ffb..663868f09b024c82d8cc128cc38f2761aed42e55 100755 (executable)
@@ -164,4 +164,3 @@ echo $OUTPUT->header();
 data_print_comments($data, $record, $page, $mform);
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 6a639a79d0a75ee1daa60d10e4be7d373d223a15..67c9ba437172c1f00515a6ce40e786bee1c2fd3e 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once $CFG->libdir.'/formslib.php';
 
@@ -33,4 +33,3 @@ class mod_data_comment_form extends moodleform {
 
     }
 }
-?>
\ No newline at end of file
index 35365e58198da9e6429f9182362ca059de611307..24510b5c407fa2931db1b379ba44d0dffe5e28ff 100644 (file)
@@ -208,4 +208,4 @@ $mod_data_capabilities = array(
     ),
 );
 
-?>
+
index 31c5cf4d7de51283227a83be101fe37aa77c3c40..2295c57800cb1f2ea6cd717b181f2aa85835e8f3 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 // This file replaces:
 //   * STATEMENTS section in db/install.xml
index cdd54d30c491509700d510eee5d97458106ab183..d6cc255c6a16a72810030bd1ce2127fbceb4f4ba 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 // This file keeps track of upgrades to
 // the data module
@@ -183,4 +183,4 @@ function xmldb_data_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index a90a4d80fb09f8463b9859d8d429fb57d5bbc201..8e1a5cf4f76ed9da27bc709907e3acd75d530057 100755 (executable)
@@ -369,4 +369,3 @@ foreach ($fields as $eachfield) {
 }
 
 echo $OUTPUT->footer();
-?>
\ No newline at end of file
index 31bf3fe02eaf2f569db0d6340ecc4e88d22d2d9d..09cd98328d65beb5919d7b03697674819ffb9907 100644 (file)
@@ -126,4 +126,3 @@ switch ($formdata['exporttype']) {
 }
 
 die();
-?>
\ No newline at end of file
index 75e6f9c9a845f59579d2ba42bd271bfc5c4bb879..5df3bfbe845c13cf4489133d8cbf6954e00c5d96 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 if (!defined('MOODLE_INTERNAL')) {
     die('Direct access to this script is forbidden!');
@@ -72,4 +72,4 @@ class mod_data_export_form extends moodleform {
 
 }
 
-?>
+
index 355026c6f118cb3d6c4e7808e60791e54650f53e..1dd9bf4354c7d44619391eb27e13169870503a9d 100755 (executable)
@@ -361,4 +361,3 @@ if (($mode == 'new') && (!empty($newtype)) && confirm_sesskey()) {          ///
 /// Finish the page
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 0d50f0c8e369326491d51a334c04dd66b0e30c1a..629094f8d8a5b89a2e670d323c22b2378d766981 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -72,18 +72,18 @@ class data_field_checkbox extends data_field_base {
                 $options[$key] = $key;  //Build following indicies from the sql.
             }
         }
-        return $OUTPUT->select(html_select::make($options, 'f_'.$this->field->id, $value)); 
+        return $OUTPUT->select(html_select::make($options, 'f_'.$this->field->id, $value));
     }
-    
+
     function parse_search_field() {
         return optional_param('f_'.$this->field->id, '', PARAM_NOTAGS);
     }
-    
+
     function generate_sql($tablealias, $value) {
         static $i=0;
         $i++;
         $name = "df_checkbox_$i";
-        return array(" ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content = :$name) ", array($name=>$value)); 
+        return array(" ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content = :$name) ", array($name=>$value));
     }
 
     function update_content($recordid, $value, $name='') {
@@ -133,4 +133,4 @@ class data_field_checkbox extends data_field_base {
         return $str;
     }
 }
-?>
+
index 4b5a85a2e71c2e7b196a34b1dd9d1b2dd311ea7d..597f07ea79669c288b7357806f9a65566056119b 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -52,21 +52,21 @@ class data_field_date extends data_field_base {
 
         return $str;
     }
-    
+
     //Enable the following three functions once core API issues have been addressed.
     function display_search_field($value=0) {
         return false;
         //return print_date_selector('f_'.$this->field->id.'_d', 'f_'.$this->field->id.'_m', 'f_'.$this->field->id.'_y', $value, true);
     }
-    
+
     function generate_sql($tablealias, $value) {
         return array(' 1=1 ', array());
-        //return " ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content = '$value') "; 
+        //return " ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content = '$value') ";
     }
-    
+
     function parse_search_field() {
         return '';
-       /* 
+       /*
         $day   = optional_param('f_'.$this->field->id.'_d', 0, PARAM_INT);
         $month = optional_param('f_'.$this->field->id.'_m', 0, PARAM_INT);
         $year  = optional_param('f_'.$this->field->id.'_y', 0, PARAM_INT);
@@ -119,4 +119,4 @@ class data_field_date extends data_field_base {
 
 }
 
-?>
+
index b4e0d75e4a572ce9590bbc584085ee284eb458ee..b449385e390a3262ab87c543c63248e5dd13468b 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -190,4 +190,4 @@ class data_field_file extends data_field_base {
 
 }
 
-?>
+
index e74c68730efe5fa612e394bfef3512aefdac3071..1de854679765f50f4f095c3c66644bf71cd394cc 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -213,4 +213,4 @@ class data_field_latlong extends data_field_base {
 
 }
 
-?>
+
index 2c99ce1a94303bafed58cb5b008f1da931a67c03..c4431ce34f663299d131a054b7d3447efd0d3039 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -45,7 +45,7 @@ class data_field_menu extends data_field_base {
                 $options[$option] = $option;
             }
         }
-        
+
 
         $select = html_select::make($options, 'field_'.$this->field->id, $content, get_string('menuchoose', 'data'));
         $select->nothingvalue = '';
@@ -57,7 +57,7 @@ class data_field_menu extends data_field_base {
 
         return $str;
     }
-    
+
     function display_search_field($content = '') {
         global $CFG, $DB, $OUTPUT;
 
@@ -88,7 +88,7 @@ class data_field_menu extends data_field_base {
             return '';
         }
 
-        return $OUTPUT->select(html_select::make($options, 'f_'.$this->field->id, $content, '&nbsp;'));    
+        return $OUTPUT->select(html_select::make($options, 'f_'.$this->field->id, $content, '&nbsp;'));
     }
 
      function parse_search_field() {
@@ -99,9 +99,9 @@ class data_field_menu extends data_field_base {
         static $i=0;
         $i++;
         $name = "df_menu_$i";
-        return array(" ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content = :$name) ", array($name=>$value)); 
+        return array(" ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content = :$name) ", array($name=>$value));
     }
 
 }
 
-?>
+
index 030ef4d149ff951c8dc3ad9ed964b933abe91236..8e89804964335a609cef9fb4890000ea4de4ae68 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -234,4 +234,4 @@ class data_field_multimenu extends data_field_base {
         return false;
     }
 }
-?>
+
index 1fe18c933f0e833132803d7a174ae3d35e7a1f8a..bb80ec3aa915d9c47136f9908a746c93d289613b 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -76,13 +76,13 @@ class data_field_number extends data_field_base {
     function parse_search_field() {
         return optional_param('f_'.$this->field->id, '', PARAM_NOTAGS);
     }
-    
+
     // need to cast?
     function generate_sql($tablealias, $value) {
         static $i=0;
         $i++;
         $name = "df_number_$i";
-        return array(" ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content = :$name) ", array($name=>$value)); 
+        return array(" ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content = :$name) ", array($name=>$value));
     }
 
     function get_sort_sql($fieldname) {
@@ -102,4 +102,4 @@ class data_field_number extends data_field_base {
 
 }
 
-?>
+
index f0ce2f5b9e8a793ac7fc7524787587e2e7debd66..8720f029c1e5d8d074be2bf065d22174231e693a 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -249,4 +249,4 @@ class data_field_picture extends data_field_base {
     }
 }
 
-?>
+
index e0dcd96fa0aec96a2e0abddeff2f372e1fb684b1..df5dcfba30d04e5182033fd2c77f732c4a3c7381 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -61,7 +61,7 @@ class data_field_radiobutton extends data_field_base {
         $str .= '</div>';
         return $str;
     }
-    
+
      function display_search_field($value = '') {
         global $CFG, $DB, $OUTPUT;
         $temp = $DB->get_records_sql_menu('SELECT id, content FROM {data_content} WHERE fieldid=? GROUP BY content ORDER BY content', array($this->field->id));
@@ -78,13 +78,13 @@ class data_field_radiobutton extends data_field_base {
     function parse_search_field() {
         return optional_param('f_'.$this->field->id, '', PARAM_NOTAGS);
     }
-    
+
     function generate_sql($tablealias, $value) {
         static $i=0;
         $i++;
         $name = "df_number_$i";
-        return array(" ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content = :$name) ", array($name=>$value)); 
+        return array(" ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content = :$name) ", array($name=>$value));
     }
 
 }
-?>
+
index 2b42d5ea87c88e7ff28fff1d9440fe50d311d11b..a6f4e252f5a072c4c75d16b1a9e32b298fbce87b 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -27,13 +27,13 @@ class data_field_text extends data_field_base {
     var $type = 'text';
 
     function display_search_field($value = '') {
-        return '<input type="text" size="16" name="f_'.$this->field->id.'" value="'.$value.'" />';   
+        return '<input type="text" size="16" name="f_'.$this->field->id.'" value="'.$value.'" />';
     }
-    
+
     function parse_search_field() {
         return optional_param('f_'.$this->field->id, '', PARAM_NOTAGS);
     }
-    
+
     function generate_sql($tablealias, $value) {
         global $DB;
 
@@ -44,7 +44,7 @@ class data_field_text extends data_field_base {
         $name = "df_picture_$i";
         return array(" ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content $ILIKE :$name) ", array($name=>"%$value%"));
     }
-    
+
 }
 
-?>
+
index 6b401f47a580c9e678f52b09ac5d700c20314567..e07e7a7a46ed59e54fb0d7524647908d4fec28f7 100755 (executable)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -62,16 +62,16 @@ class data_field_textarea extends data_field_base {
         $str .= '</div>';
         return $str;
     }
-    
-    
+
+
     function display_search_field($value = '') {
-        return '<input type="text" size="16" name="f_'.$this->field->id.'" value="'.$value.'" />';   
+        return '<input type="text" size="16" name="f_'.$this->field->id.'" value="'.$value.'" />';
     }
-    
+
     function parse_search_field() {
         return optional_param('f_'.$this->field->id, '', PARAM_NOTAGS);
     }
-    
+
     function generate_sql($tablealias, $value) {
         global $DB;
 
@@ -82,7 +82,7 @@ class data_field_textarea extends data_field_base {
         $name = "df_picture_$i";
         return array(" ({$tablealias}.fieldid = {$this->field->id} AND {$tablealias}.content $ILIKE :$name) ", array($name=>"%$value%"));
     }
-    
+
     function gen_textarea($usehtmleditor, $text='') {
         return print_textarea($usehtmleditor, $this->field->param3, $this->field->param2,
                               '', '', 'field_'.$this->field->id, $text, '', true, 'field_' . $this->field->id);
@@ -115,4 +115,4 @@ class data_field_textarea extends data_field_base {
         }
     }
 }
-?>
+
index ab972617e4eb1b8930d0faa65e0cd2c942cb0993..01542a486ad5986f14a8c9a88c36254ca4ad54d1 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -142,4 +142,4 @@ class data_field_url extends data_field_base {
 
 }
 
-?>
+
index 0fa1283b1b70970bb328dc8b2f70d8803e7ae3ce..41328011366667a7573e90a226f30cf52cc869a2 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
     //
     // This function provides automatic linking to data contents of text
     // fields where these fields have autolink enabled.
@@ -65,4 +65,4 @@
         return  filter_phrases($text, $contentlist);  // Look for all these links in the text
     }
 
-?>
+
index 1dba3c9fd726a4940200620b44fc5095259c4754..b9bb9ac64b565ba7f32034d10806b773b8d21bcb 100755 (executable)
@@ -255,4 +255,4 @@ function data_get_records_csv($filename, $fielddelimiter=',', $fieldenclosure="\
     return $rows;
 }
 
-?>
+
index 2731986dbddabd20fa1ecc753703eb7ba5053857..0d814b5a15d1976be25015ce8bb2f7d9ca876a6b 100755 (executable)
@@ -143,4 +143,3 @@ echo "<br />";
 echo $OUTPUT->table($table);
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 244339522a389d86d830c6abb9b5bf2c01b4fc97..62ed939146a8b55f1d5e65538bb885ed1fd090cb 100644 (file)
@@ -73,4 +73,4 @@ class mod_data_mod_form extends moodleform_mod {
     }
 
 }
-?>
+
index 5799c0c55c4c8e9cda464bf3d3b8a5416fd984da..b2a351ce0c06d6d6b9349164c27f60bf76225105 100644 (file)
@@ -134,7 +134,7 @@ switch ($action) {
         $optionsyes = array('fullname' => $userid.'/'.$shortname,
                          'action' => 'delete',
                          'd' => $data->id);
-                         
+
         $optionsno = array('d' => $data->id);
         echo $OUTPUT->confirm($strwarning, new moodle_url('preset.php', $optionsyes), new moodle_url('preset.php', $optionsno));
         echo $OUTPUT->footer();
@@ -546,4 +546,4 @@ function data_presets_export($course, $cm, $data) {
     return $exportfile;
 }
 
-?>
+
index 8e10342e2220a8c0c5dc9a52d88d97b2246a39f1..9e05cd085d586fb4d33e413a33d3a9c708018bb7 100755 (executable)
@@ -104,4 +104,3 @@ if (!empty($_SERVER['HTTP_REFERER'])) {
     }
 }
 
-?>
\ No newline at end of file
index 4cd8a7c3e69fd1ab218f76ae02de1e8f6359f9d2..ccdcfd7692d13f4e5fc0d38785aed60ba80bb44e 100755 (executable)
@@ -87,4 +87,3 @@ if (!$ratings = data_get_ratings($record->id, $sqlsort)) {
 
 echo $OUTPUT->close_window_button();
 echo $OUTPUT->footer();
-?>
\ No newline at end of file
index 5a1da05e2dfea7ba476e3964750c9dba6ab47c0c..59f05befb813b59fe1cd5a7761d9a2d3583de787 100644 (file)
@@ -721,4 +721,4 @@ function data_decode_content_links_caller($restore) {
     return $status;
 }
 
-?>
+
index ef0390779af1c08e2a43a068cf25106bf55f179f..540d369ff2e2ef8327e554ba9c06aedd385440bd 100644 (file)
         return $status;
     }
 
-?>
+
index 8b2af4e06bb8be456398a5618596a1c7af0f41c8..cfddead073e53bdd4697e31915e583f6f14ec4ee 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 if (empty($CFG->enablerssfeeds)) {
     $options = array(0 => get_string('rssglobaldisabled', 'admin'));
@@ -11,4 +11,4 @@ if (empty($CFG->enablerssfeeds)) {
 $settings->add(new admin_setting_configselect('data_enablerssfeeds', get_string('enablerssfeeds', 'admin'),
                    $str, 0, $options));
 
-?>
+
index 92312664c4f3b328154b29e7c5885300106584e2..a17ca8df359232cb6083e1d06f7468ed1f92ce1a 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 require_once("$CFG->libdir/simpletest/portfolio_testclass.php");
 require_once("$CFG->dirroot/mod/data/lib.php");
 require_once("$CFG->dirroot/$CFG->admin/generator.php");
@@ -69,4 +69,4 @@ class testDataPortfolioCallers extends portfoliolib_test {
         parent::test_caller_with_plugins();
     }
 }
-?>
+
index 1edcc1878b42f6b39ee81f770c602afb5f5b45c3..b543693e7cba86171ccf419510e71f68d33d586a 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -62,4 +62,4 @@ class data_preset_test extends UnitTestCase {
     }
 }
 
-?>
+
index f34dda26acdd9ba00b5207044e225e8db582f9a4..40298737cff124aa1521e1a9846867660e5941a8 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
@@ -38,7 +38,7 @@
     $row = array();
 
     $row[] = new tabobject('list', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id, get_string('list','data'));
-    
+
     if (isset($record)) {
         $row[] = new tabobject('single', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&amp;rid='.$record->id, get_string('single','data'));
     } else {
@@ -55,7 +55,7 @@
         }
         if (has_capability(DATA_CAP_EXPORT, $context)) {
             // The capability required to Export database records is centrally defined in 'lib.php'
-            // and should be weaker than those required to edit Templates, Fields and Presets. 
+            // and should be weaker than those required to edit Templates, Fields and Presets.
             $row[] = new tabobject('export', $CFG->wwwroot.'/mod/data/export.php?d='.$data->id,
                          get_string('export', 'data'));
         }
 // Print out the tabs and continue!
     print_tabs($tabs, $currenttab, $inactive, $activetwo);
 
-?>
+
index 99068c30c8bca1f714a91c80e4db89b5b804d429..9855a0e2e217eaccc7a71dffd8324d3d2c842ab4 100755 (executable)
@@ -298,4 +298,3 @@ echo '</form>';
 
 /// Finish the page
 echo $OUTPUT->footer();
-?>
\ No newline at end of file
index b40155e72f493cc81d2ccdd5e1fd0f1dc450358b..ae50653944fc008b9735c23256af51001269e9eb 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the module version etc.
@@ -9,4 +9,4 @@ $module->version  = 2009042000;
 $module->requires = 2009041700;  // Requires this Moodle version
 $module->cron     = 60;
 
-?>
+
index 40c2ce88f0edfbaae8a6369f6bcae94a2b181bd3..247e2013600e3e0cd6e4c78b703fe2c9197d7fe6 100755 (executable)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
     $PAGE->set_heading($course->fullname);
     $PAGE->set_button($buttons);
     echo $OUTPUT->header();
-    
+
 /// Check to see if groups are being used here
     $returnurl = 'view.php?d='.$data->id.'&amp;search='.s($search).'&amp;sort='.s($sort).'&amp;order='.s($order).'&amp;';
     groups_print_activity_menu($cm, $returnurl);
     $completion->set_module_viewed($cm);
 
     echo $OUTPUT->footer();
-?>
+
index b0df9b539717a09608f24bcc706825d99aaf74a9..9a0c603be7ed7750e25642ce418706633d304882 100644 (file)
@@ -17,7 +17,7 @@ Requirements
 ------------
 Moodle 1.9 or later
 
-Installation 
+Installation
 ------------
    The zip-archive includes the same directory hierarchy as moodle
    So you only have to copy the files to the correspondent place.
index b0da2860db4b768555049934b0ba2eeceffeb697..10141718db44da55953718599398b60e2f921c3e 100644 (file)
@@ -154,4 +154,3 @@ echo $OUTPUT->box_end();
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 5ab28ba908106e0b4f534f56c0ee9d3d10a192cc..ed58238e4e86d9126290bddf642b69c30840bf8a 100644 (file)
@@ -200,4 +200,3 @@ echo $OUTPUT->box_end();
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 1a452cceffd7d9f6d0444febdec3488bef6b645b..b945218b95a2a7d23de672089104e0d837468851 100644 (file)
@@ -13,7 +13,7 @@ require_once("lib.php");
 require_once('easy_excel.php');
 
 $id = required_param('id', PARAM_INT);  //the POST dominated the GET
-$coursefilter = optional_param('coursefilter', '0', PARAM_INT);    
+$coursefilter = optional_param('coursefilter', '0', PARAM_INT);
 
 $url = new moodle_url($CFG->wwwroot.'/mod/feedback/analysis_to_excel.php', array('id'=>$id));
 if ($coursefilter !== '0') {
@@ -164,10 +164,10 @@ if(is_array($completeds)){
 
 $workbook->close();
 exit;
-////////////////////////////////////////////////////////////////////////////////    
-////////////////////////////////////////////////////////////////////////////////    
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
 //functions
-////////////////////////////////////////////////////////////////////////////////    
+////////////////////////////////////////////////////////////////////////////////
 
 
 function feedback_excelprint_detailed_head(&$worksheet, $items, $rowOffset) {
@@ -266,4 +266,3 @@ function feedback_excelprint_detailed_items(&$worksheet, $completed, $items, $ro
     }
     return $rowOffset + 1;
 }
-?>
\ No newline at end of file
index caa1ef1b27110d31c01e269a0cde5f982b4c9ba6..091d772096fe2df7b93717ba940472883e8e8343 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
     //This php script contains all the stuff to backup/restore
     //feedback mods
 
             }
          }
       }
-      return $status;  
+      return $status;
    }
 
    function feedback_backup_one_mod($bf,$preferences,$feedback) {
       global $CFG, $DB;
-    
+
       if (is_numeric($feedback)) {
          $feedback = $DB->get_record('feedback', array('id'=>$feedback));
       }
-      
+
       $status = true;
       fwrite ($bf,start_tag("MOD",3,true));
       //Print feedback data
       fwrite ($bf,full_tag("TIMEOPEN",4,false,$feedback->timeopen));
       fwrite ($bf,full_tag("TIMECLOSE",4,false,$feedback->timeclose));
       fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$feedback->timemodified));
-       
+
       //backup the items of each feedback
       feedback_backup_data($bf, $preferences, $feedback->id);
-       
+
       //End mod
       $status =fwrite ($bf,end_tag("MOD",3,true));
       return $status;
    }
-   
+
    function feedback_backup_data($bf, $preferences, $feedbackid) {
       global $CFG, $DB;
 
             fwrite ($bf,full_tag("HASVALUE",6,false,$feedbackitem->hasvalue));
             fwrite ($bf,full_tag("POSITION",6,false,$feedbackitem->position));
             fwrite ($bf,full_tag("REQUIRED",6,false,$feedbackitem->required));
-            
+
             if ($backup_userdata) {
                //backup the values of items
                $feedbackvalues = $DB->get_records('feedback_value', array('item'=>$feedbackitem->id));
          }
          $status =fwrite ($bf,end_tag("ITEMS",4,true));
       }
-      
+
       if($backup_userdata) {
          //backup of feedback-completeds
          $feedbackcompleteds = $DB->get_records('feedback_completed', array('feedback'=>$feedbackid));
                fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$feedbackcompleted->timemodified));
                fwrite ($bf,full_tag("RANDOMRESPONSE",6,false,$feedbackcompleted->random_response));
                fwrite ($bf,full_tag("ANONYMOUSRESPONSE",6,false,$feedbackcompleted->anonymous_response));
-               
+
                //End completed
                $status =fwrite ($bf,end_tag("COMPLETED",5,true));
             }
             $status =fwrite ($bf,end_tag("COMPLETEDS",4,true));
          }
-         
+
          //backup of tracking-data
          $feedbacktrackings = $DB->get_records('feedback_tracking', array('feedback'=>$feedbackid));
          if($feedbacktrackings) {
                fwrite ($bf,full_tag("USERID",6,false,$feedbacktracking->userid));
                fwrite ($bf,full_tag("FEEDBACK",6,false,$feedbacktracking->feedback));
                fwrite ($bf,full_tag("COMPLETED",6,false,$feedbacktracking->completed));
-               
+
                //End completed
                $status =fwrite ($bf,end_tag("TRACKING",5,true));
             }
             $status =fwrite ($bf,end_tag("TRACKINGS",4,true));
          }
-         
+
       }
 
    }
             fwrite ($bf,full_tag("HASVALUE",7,false,$templateitem->hasvalue));
             fwrite ($bf,full_tag("POSITION",7,false,$templateitem->position));
             fwrite ($bf,full_tag("REQUIRED",7,false,$templateitem->required));
-            
+
             //End item
             $status =fwrite ($bf,end_tag("ITEM",6,true));
          }
       //First the course data
       $info[0][0] = get_string("modulenameplural","feedback");
       $info[0][1] = feedback_count($course);
-      
+
       //Now, if requested, the user_data
-      
+
       if ($user_data) {
          $info[1][0] = get_string('ready_feedbacks','feedback');
          $info[1][1] = feedback_completed_count($course);
       }
-      
+
       return $info;
    }
 
 ///////////////////////////////////////////////////////////////
 //// INTERNAL FUNCTIONS. BASED IN THE MOD STRUCTURE
 
-   //Returns an array of feedbacks ids 
+   //Returns an array of feedbacks ids
    function feedback_count ($course) {
       global $DB;
 
       return $DB->count_records('feedback', array('course'=>$course));
    }
-   
+
    function feedback_completed_count($course) {
       global $DB;
 
       }
       return $count;
    }
-   
-?>
+
+
index 1d2c082ba686e99e89f7c4e6172b36fbe84f192c..5f9805eae2ca3626e1599e02b0adc9217a57273d 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
 * prints the form to choose the group you want to analyse
 *
@@ -12,13 +12,13 @@ require_once $CFG->libdir.'/formslib.php';
 
 class feedback_choose_group_form extends moodleform {
     var $feedbackdata;
-    
+
     function definition() {
         $this->feedbackdata = new object();
         //this function can not be called, because not all data are available at this time
         //I use set_form_elements instead
     }
-    
+
     //this function set the data used in set_form_elements()
     //in this form the only value have to set is course
     //eg: array('course' => $course)
@@ -29,13 +29,13 @@ class feedback_choose_group_form extends moodleform {
             }
         }
     }
-    
+
     //here the elements will be set
     //this function have to be called manually
     //the advantage is that the data are already set
     function set_form_elements(){
         $mform =& $this->_form;
-        
+
         $elementgroup = array();
         //headline
         // $mform->addElement('header', 'general', get_string('choose_group', 'feedback'));
@@ -44,7 +44,7 @@ class feedback_choose_group_form extends moodleform {
         $mform->setType('id', PARAM_INT);
         $mform->addElement('hidden', 'do_show');
         $mform->setType('do-show', PARAM_INT);
-        
+
         // visible elements
         $groups_options = array();
         if(isset($this->feedbackdata->groups)){
@@ -58,8 +58,8 @@ class feedback_choose_group_form extends moodleform {
         // buttons
         $elementgroup[] =& $mform->createElement('submit', 'switch_group', get_string('switch_group', 'feedback'));
         $mform->addGroup($elementgroup, 'elementgroup', '', array(' '), false);
-        
+
 //-------------------------------------------------------------------------------
     }
 }
-?>
+
index d66684a56cf85da9c6c6d448184ee256206a1d69..bfd24b36a280ff2c1f53e52f2091b0c4cac956fb 100644 (file)
@@ -439,4 +439,3 @@ if($feedback_can_submit) {
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index feefbc89cc01549a8f37d6438d9026785c9759a7..0c07c177b550f9785369d8141d3727e3fbaec311 100644 (file)
@@ -402,4 +402,3 @@ if($feedback_can_submit) {
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index faa7e96e1f33b3692949aa151257d484c4ef575b..40be7788078faade2a9c1959c4991c019b528bd3 100644 (file)
@@ -46,7 +46,7 @@ $mod_feedback_capabilities = array(
             'admin' => CAP_ALLOW
         )
     ),
-    
+
     'mod/feedback:complete' => array(
 
         'riskbitmask' => RISK_SPAM,
@@ -60,7 +60,7 @@ $mod_feedback_capabilities = array(
             'admin' => CAP_PREVENT
         )
     ),
-    
+
     'mod/feedback:viewanalysepage' => array(
 
         'riskbitmask' => RISK_PERSONAL,
@@ -74,7 +74,7 @@ $mod_feedback_capabilities = array(
             'admin' => CAP_ALLOW
         )
     ),
-    
+
     'mod/feedback:deletesubmissions' => array(
 
         'captype' => 'write',
@@ -141,7 +141,7 @@ $mod_feedback_capabilities = array(
     ),
 
     'mod/feedback:viewreports' => array(
-    
+
         'riskbitmask' => RISK_PERSONAL,
 
         'captype' => 'read',
@@ -154,7 +154,7 @@ $mod_feedback_capabilities = array(
     ),
 
     'mod/feedback:receivemail' => array(
-    
+
         'riskbitmask' => RISK_PERSONAL,
 
         'captype' => 'read',
@@ -168,4 +168,4 @@ $mod_feedback_capabilities = array(
 
 );
 
-?>
+
index e7968129e99812935652b085aca2e3997454b5a9..a161fd8c888fe221106d351eb20e0f5e8ac9e303 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 // This file replaces:
 //   * STATEMENTS section in db/install.xml
index 357613200bda1531c3139c69c4e4c312fe3ae5b7..6f3b56ef9ffc4bfbf7aacb0ccc9bac363aa385c9 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 // This file keeps track of upgrades to
 // the feedback module
@@ -280,4 +280,4 @@ function xmldb_feedback_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index d08de50a6fe2f002c105675892b90786032b64e8..c094887f52af8fedc171b8a9f605e0f912c163bc 100644 (file)
@@ -86,4 +86,4 @@ echo $OUTPUT->box_end();
 
 echo $OUTPUT->footer();
 
-?>
+
index 38bf5277fd4691bc63cc7eca2a92ad9c242a0ad7..021590fff86280f94c9034cea345a3e522b6ba3c 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
 * prints the form to confirm delete a completed
 *
@@ -16,7 +16,7 @@ class mod_feedback_delete_completed_form extends moodleform {
 
         //headline
         //$mform->addElement('header', 'general', '');
-        
+
         // hidden elements
         $mform->addElement('hidden', 'id');
         $mform->setType('id', PARAM_INT);
@@ -33,4 +33,4 @@ class mod_feedback_delete_completed_form extends moodleform {
 
     }
 }
-?>
+
index e45b20cf907509ba588c0ad9cf9cef1375de045d..577c268b433417d80b41d934541088507c04e8d1 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
 * deletes an item of the feedback
 *
@@ -79,4 +79,4 @@
 
     echo $OUTPUT->footer();
 
-?>
+
index 7d48508fb751ff10adfffe27006414f4600a2ba2..3c26e18eaf6790642aee5e2b3b037e89a9327953 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
 * prints the form to confirm delete a completed
 *
@@ -16,7 +16,7 @@ class mod_feedback_delete_item_form extends moodleform {
 
         //headline
         //$mform->addElement('header', 'general', '');
-        
+
         // hidden elements
         $mform->addElement('hidden', 'id');
         $mform->setType('id', PARAM_INT);
@@ -31,4 +31,4 @@ class mod_feedback_delete_item_form extends moodleform {
 
     }
 }
-?>
+
index 75e85a181eaead0e2d7e5169bcf9f6833e60e591..1c0697d6a8a63058d188bfe92582b4980c2ed20b 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
 * prints the form to confirm delete a completed
 *
@@ -16,7 +16,7 @@ class mod_feedback_delete_template_form extends moodleform {
 
         //headline
         //$mform->addElement('header', 'general', '');
-        
+
         // hidden elements
         $mform->addElement('hidden', 'id');
         $mform->setType('id', PARAM_INT);
@@ -31,4 +31,4 @@ class mod_feedback_delete_template_form extends moodleform {
 
     }
 }
-?>
+
index 19a055f7f3de0c2782b1811730a4baaa3716db1c..99265ce61fb1d7c8bb004843fd6ff6e3c0a04844 100644 (file)
@@ -17,7 +17,7 @@ require_once 'Spreadsheet/Excel/Writer.php';
 class EasyWorkbook extends Spreadsheet_Excel_Writer {
     function &addWorksheet($name = ''){
         global $CFG;
-        
+
         $index      = count($this->_worksheets);
         $sheetname = $this->_sheetname;
 
@@ -69,7 +69,7 @@ class EasyWorksheet extends Spreadsheet_Excel_Writer_Worksheet {
     function set_workbook(&$workbook) {
         $this->m_workbook =& $workbook;
     }
-    
+
     function write($row, $col, $token)
     {
         parent::write($row, $col, $token, $this->m_format);
@@ -95,7 +95,7 @@ class EasyWorksheet extends Spreadsheet_Excel_Writer_Worksheet {
         parent::writeUrl($row, $col, $url, $string, $this->m_format);
     }
 
-    /** 
+    /**
      *  Setz das aktuelle Format, dass zum Schreiben verwendet wird
      *  Der Formatstring setzt sich aus den folgenden Buchstaben mit folgender Bedeutung zusammen.
      *  <f> = Fett
@@ -130,7 +130,7 @@ class EasyWorksheet extends Spreadsheet_Excel_Writer_Worksheet {
         if((count($this->m_formatbox) > 0) AND array_key_exists($signature, $this->m_formatbox)) {
             $this->m_format = $this->m_formatbox[$signature];
         }else {
-        
+
             $this->m_format = &$this->m_workbook->addFormat();
             if($textWrap)
             {
@@ -219,7 +219,7 @@ class EasyWorksheet extends Spreadsheet_Excel_Writer_Worksheet {
             }
 
             $this->m_format->setSize($size);
-            
+
             //save the format with its signature
             $this->m_formatbox[$signature] = $this->m_format;
         }
@@ -231,11 +231,11 @@ function feedback_convert_to_win($text) {
     static $textlib;
     static $newwincharset;
     static $oldcharset;
-    
+
     if(!isset($textlib)) {
         $textlib = textlib_get_instance();
     }
-    
+
     if(!isset($newwincharset)) {
         if(!isset($CFG->latinexcelexport) || !$CFG->latinexcelexport) {
             $newwincharset = 'UTF-16LE';
@@ -246,16 +246,16 @@ function feedback_convert_to_win($text) {
             }
         }
     }
-    
+
     if(!isset($oldcharset)) {
         $oldcharset = get_string('thischarset');
     }
-    
+
     //converting <br /> into newline
     $newtext = str_ireplace('<br />', "\n", $text);
     $newtext = str_ireplace('<br>', "\n", $newtext);
-    
+
     return $textlib->convert($newtext, $oldcharset, $newwincharset);
 }
 
-?>
+
index c0775026e8694bfc4c9d4b984598bf819c598e8d..86575a82d6329d1d75893d928fd8f7e516a43376 100644 (file)
@@ -420,4 +420,3 @@ function feedback_edit_print_default_form_values($id, $tab) {
     echo '<input type="hidden" name="id" value="'.$id.'" />';
     echo '<input type="hidden" name="do_show" value="'.$tab.'" />';
 }
-?>
\ No newline at end of file
index 8f740d5d8206bc53c745ee4f5333f7c402d1570d..5ebb52ed40dbb1a454b1c5a23b77ded4b160a47e 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
 * prints the forms to choose an item-typ to create items and to choose a template to use
 *
@@ -24,7 +24,7 @@ class feedback_edit_add_question_form extends moodleform {
             // $feedback_names_options[$fn] = get_string($fn,'feedback');
         // }
         $feedback_names_options = feedback_load_feedback_items_options();
-        
+
         $attributes = 'onChange="this.form.submit()"';
         $mform->addElement('select', 'typ', '', $feedback_names_options, $attributes);
 
@@ -41,13 +41,13 @@ class feedback_edit_add_question_form extends moodleform {
 
 class feedback_edit_use_template_form extends moodleform {
     var $feedbackdata;
-    
+
     function definition() {
         $this->feedbackdata = new object();
         //this function can not be called, because not all data are available at this time
         //I use set_form_elements instead
     }
-    
+
     //this function set the data used in set_form_elements()
     //in this form the only value have to set is course
     //eg: array('course' => $course)
@@ -58,20 +58,20 @@ class feedback_edit_use_template_form extends moodleform {
             }
         }
     }
-    
+
     //here the elements will be set
     //this function have to be called manually
     //the advantage is that the data are already set
     function set_form_elements(){
         $mform =& $this->_form;
-        
+
         $elementgroup = array();
         //headline
         $mform->addElement('header', '', get_string('using_templates', 'feedback'));
         // hidden elements
         $mform->addElement('hidden', 'id');
         $mform->setType('id', PARAM_INT);
-        
+
         // visible elements
         $templates_options = array();
         if($templates = feedback_get_template_list($this->feedbackdata->course)){//get the templates
@@ -87,21 +87,21 @@ class feedback_edit_use_template_form extends moodleform {
             $mform->addElement('static', 'info', get_string('no_templates_available_yet', 'feedback'));
         }
         $mform->addGroup($elementgroup, 'elementgroup', '', array(' '), false);
-        
+
     //-------------------------------------------------------------------------------
     }
 }
 
 class feedback_edit_create_template_form extends moodleform {
     var $feedbackdata;
-    
+
     function definition() {
     }
-    
+
     function data_preprocessing(&$default_values){
         $default_values['templatename'] = '';
     }
-    
+
     function set_feedbackdata($data) {
         if(is_array($data)) {
             foreach($data as $key => $val) {
@@ -109,7 +109,7 @@ class feedback_edit_create_template_form extends moodleform {
             }
         }
     }
-    
+
     function set_form_elements(){
         $mform =& $this->_form;
         $capabilities = $this->feedbackdata->capabilities;
@@ -124,23 +124,23 @@ class feedback_edit_create_template_form extends moodleform {
 
         //headline
         $mform->addElement('header', '', get_string('creating_templates', 'feedback'));
-        
+
         // visible elements
         $elementgroup = array();
-        
+
         $elementgroup[] =& $mform->createElement('static', 'templatenamelabel', get_string('name', 'feedback'));
         $elementgroup[] =& $mform->createElement('text', 'templatename', get_string('name', 'feedback'), array('size'=>'40', 'maxlength'=>'200'));
         if($capabilities->createpublictemplate) {
             $elementgroup[] =& $mform->createElement('checkbox', 'ispublic', get_string('public', 'feedback'), get_string('public', 'feedback'));
         }
-        
+
         // buttons
         $elementgroup[] =& $mform->createElement('submit', 'create_template', get_string('save_as_new_template', 'feedback'));
         $mform->addGroup($elementgroup, 'elementgroup', get_string('name', 'feedback'), array(' '), false);
-        
+
         $mform->setType('templatename', PARAM_TEXT);
-        
+
 //-------------------------------------------------------------------------------
     }
 }
-?>
+
index a4e8a43bb15997dd5e216e0a204b344e41517c51..4225646adaefc39ee5915d52f4c717d8f123795b 100644 (file)
@@ -253,4 +253,3 @@ if ($typ!='label') {
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 3f6b234a5a484943468964c09936c194dcda2839..6b3c36b9d008c5669b46d626a00a9a7830f4c0e2 100644 (file)
@@ -12,7 +12,7 @@ require_once("../../config.php");
 require_once("lib.php");
 
 // get parameters
-$id = required_param('id', PARAM_INT); 
+$id = required_param('id', PARAM_INT);
 $action = optional_param('action', false, PARAM_ALPHA);
 
 $url = new moodle_url($CFG->wwwroot.'/mod/feedback/export.php', array('id'=>$id));
@@ -109,4 +109,3 @@ function feedback_send_xml_data($data, $filename) {
     @header('Content-Disposition: attachment; filename='.$filename);
     print($data);
 }
-?>
\ No newline at end of file
index dacfd90f91d311feb719efcd2a22e6ca92035459..a1b3472de9e66e89dd05779f1241cc1d44cfcdc9 100644 (file)
@@ -113,4 +113,3 @@ echo $OUTPUT->table($table);
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 5f868f9855a1ba37c32933808900230bac0a8764..dc21fa37c2096194a53b63ad666ef9c801bd608a 100644 (file)
@@ -8,21 +8,21 @@ class feedback_captcha_form extends feedback_item_form {
     var $itemname;
     var $itemlabel;
     var $select;
-    
+
     function definition() {
         $mform =& $this->_form;
-        
+
         $mform->addElement('header', 'general', get_string($this->type, 'feedback'));
         $this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-        
+
         $this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
         $this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
-        
+
         $this->select = $mform->addElement('select',
-                                            'count_of_nums', 
-                                            get_string('count_of_nums', 'feedback').'&nbsp;', 
+                                            'count_of_nums',
+                                            get_string('count_of_nums', 'feedback').'&nbsp;',
                                             array_slice(range(0,10),3,10,true));
-        
+
     }
 }
-?>
+
index 292eeffdbe028c042662ec2578c620a3b4252906..f634193f9403de81f98fee6dc1992f7a2b96583a 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php
 defined('FEEDBACK_INCLUDE_TEST') OR die('not allowed');
 require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
 
index b1d44fa1d8f846a3f63d0e0eae9fc8a3e41050be..9c9c161eda36abd39054e1dfbe0963984285582c 100644 (file)
@@ -114,4 +114,4 @@ function get_random_color($val1 = 0, $val2 = 255) {
     return rand($min, $max);
 }
 
-?> 
+
index 62e8d7b98ccb12b2fef0fda1609a9810f2eb0e43..e84623da3125791e7d5ae7f7635a4d051db6c474 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php
 
 class feedback_item_base {
     var $type;
@@ -17,10 +17,10 @@ class feedback_item_base {
     function __construct() {
         $this->feedback_item_base();
     }
-    
+
     /**
      * prints the item-related sequenz on the edit-item form
-     * 
+     *
      * @param $item the db-object from feedback_item
      * @param $usehtmleditor defines whether the editor should be shown or not
      */
@@ -96,8 +96,8 @@ class feedback_item_base {
 class feedback_item_pagebreak extends feedback_item_base {
     var $type = "pagebreak";
     function init() {
-    
+
     }
 }
 
-?>
+
index 6c76344713fd9876e3468fe4d72d2cdbbe8ad8d4..b803489b3ae2ea06bdc63a6bd642a8123511850e 100644 (file)
@@ -9,4 +9,4 @@ abstract class feedback_item_form extends moodleform {
         return $this->_form;
     }
 }
-?>
+
index a7ead8cf2f1dd1ae3b5143ee0b2b88b87777a7aa..5ee5e599c17eb8e2acf69d5816079809efd362c9 100644 (file)
@@ -8,17 +8,17 @@ class feedback_info_form extends feedback_item_form {
     var $itemname;
     var $itemlabel;
     var $infotype;
-    
+
     function definition() {
         $mform =& $this->_form;
-        
+
         $mform->addElement('header', 'general', get_string($this->type, 'feedback'));
         $this->requiredcheck = &$mform->addElement('hidden', 'required');
         $mform->setType('required', PARAM_INT);
-        
+
         $this->itemname = &$mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
         $this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
-        
+
         $options=array();
         $options[1]  = get_string('responsetime', 'feedback');
         $options[2]  = get_string('coursename', 'feedback');
@@ -27,4 +27,4 @@ class feedback_info_form extends feedback_item_form {
 
     }
 }
-?>
+
index dd3773f0ecbe931aae7f68c05fae69cdfad9151d..7b2bf6af15f00959069123a07e84b7af23de33ba 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 defined('FEEDBACK_INCLUDE_TEST') OR die('not allowed');
 require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
 
index 0719c98aa78ec12737679160688d78e0f72734a4..3c02cda7d92dcba40077c100b2211ba989bcf1b0 100644 (file)
@@ -5,15 +5,15 @@ require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_form_class.php');
 class feedback_label_form extends feedback_item_form {
     var $type = "label";
     var $area;
-    
+
     function definition() {
         $mform =& $this->_form;
-        
+
         $mform->addElement('header', 'general', get_string($this->type, 'feedback'));
-        
+
         $mform->addElement('hidden', 'itemname', $this->type);
         $mform->setType('itemname', PARAM_INT);
         $this->area = $mform->addElement('htmleditor', 'presentation', '', array('rows'=>20));
     }
 }
-?>
+
index f62c9c7a4c01c527669518f9e46cd71d78e058a9..64dbdfca4a120e7b40362786433ffc7fe36af365 100644 (file)
@@ -1,22 +1,22 @@
-<?PHP  // $Id$
+<?php
 defined('FEEDBACK_INCLUDE_TEST') OR die('not allowed');
 require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
 
 class feedback_item_label extends feedback_item_base {
     var $type = "label";
     function init() {
-    
+
     }
-    
+
     function show_edit($item) {
         global $CFG;
-        
+
         require_once('label_form.php');
-        
+
         $item_form = new feedback_label_form();
-        
+
         $item->presentation = isset($item->presentation) ? $item->presentation : '';
-        
+
         $item_form->area->setValue($item->presentation);
         return $item_form;
     }
index 432dc8e598b5295e0080c25a6068543df806ad4f..7fcf45b8af3414e19b67ea31a3fa8203ba19ba8f 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 defined('FEEDBACK_INCLUDE_TEST') OR die('not allowed');
 require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
 
index b2cad9b0def4ede58b8f00169a94cadbe50366bf..2bca9342cf8256fcdfe6d86101d2258d44d3fbfd 100644 (file)
@@ -10,33 +10,33 @@ class feedback_multichoice_form extends feedback_item_form {
     var $selectadjust;
     var $selecttype;
     var $values;
-    
+
     function definition() {
         $mform =& $this->_form;
-        
+
         $mform->addElement('header', 'general', get_string($this->type, 'feedback'));
-        
+
         $this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-        
+
         $this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
         $this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
 
         $this->selectadjust = $mform->addElement('select',
-                                            'horizontal', 
-                                            get_string('adjustment', 'feedback').'&nbsp;', 
+                                            'horizontal',
+                                            get_string('adjustment', 'feedback').'&nbsp;',
                                             array(0 => get_string('vertical', 'feedback'), 1 => get_string('horizontal', 'feedback')));
-        
+
         $this->selecttype = $mform->addElement('select',
-                                            'subtype', 
-                                            get_string('multichoicetype', 'feedback').'&nbsp;', 
+                                            'subtype',
+                                            get_string('multichoicetype', 'feedback').'&nbsp;',
                                             array('r'=>get_string('radio', 'feedback'),
                                                   'c'=>get_string('check', 'feedback'),
                                                   'd'=>get_string('dropdown', 'feedback')));
 
         $mform->addElement('static', 'hint', get_string('multichoice_values', 'feedback'), get_string('use_one_line_for_each_value', 'feedback'));
-        
+
         $this->values = $mform->addElement('textarea', 'itemvalues', '', 'wrap="virtual" rows="10" cols="65"');
 
     }
 }
-?>
+
index a0aeae41714145385c2ad84e348e7f64752aab8a..e520cf2f4b51567bace71975cf9ec1c0ade51458 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 defined('FEEDBACK_INCLUDE_TEST') OR die('not allowed');
 require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
 
index 5d9b0a498cb92b178187c3114cf8b9e58a33dac1..c8b497a402805047d04048e1458a755e8c94c8e2 100644 (file)
@@ -10,32 +10,32 @@ class feedback_multichoicerated_form extends feedback_item_form {
     var $selectadjust;
     var $selecttype;
     var $values;
-    
+
     function definition() {
         $mform =& $this->_form;
-        
+
         $mform->addElement('header', 'general', get_string($this->type, 'feedback'));
-        
+
         $this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-        
+
         $this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
         $this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
 
         $this->selectadjust = $mform->addElement('select',
-                                            'horizontal', 
-                                            get_string('adjustment', 'feedback').'&nbsp;', 
+                                            'horizontal',
+                                            get_string('adjustment', 'feedback').'&nbsp;',
                                             array(0 => get_string('vertical', 'feedback'), 1 => get_string('horizontal', 'feedback')));
-        
+
         $this->selecttype = $mform->addElement('select',
-                                            'subtype', 
-                                            get_string('multichoicetype', 'feedback').'&nbsp;', 
+                                            'subtype',
+                                            get_string('multichoicetype', 'feedback').'&nbsp;',
                                             array('r'=>get_string('radio', 'feedback'),
                                                   'd'=>get_string('dropdown', 'feedback')));
 
         $mform->addElement('static', 'hint', get_string('multichoice_values', 'feedback'), get_string('use_one_line_for_each_value', 'feedback'));
-        
+
         $this->values = $mform->addElement('textarea', 'itemvalues', '', 'wrap="virtual" rows="10" cols="65"');
 
     }
 }
-?>
+
index 4c99b9ac4b892a2d914cbb960b5711c7f4aebdb2..93df5a668311fc53ee5496d821301556dda49599 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 defined('FEEDBACK_INCLUDE_TEST') OR die('not allowed');
 require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
 
index c7366ada22cada75dc54b073b14c86a37cf53b80..41d1e385adeff2cf32c45a762edc856727361ef8 100644 (file)
@@ -9,20 +9,20 @@ class feedback_numeric_form extends feedback_item_form {
     var $itemlabel;
     var $selectfrom;
     var $selectto;
-    
+
     function definition() {
         $mform =& $this->_form;
-        
+
         $mform->addElement('header', 'general', get_string($this->type, 'feedback'));
         $this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-        
+
         $this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
         $this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
-        
+
         $this->selectfrom = $mform->addElement('text', 'numericrangefrom', get_string('numeric_range_from', 'feedback'), array('size="10"','maxlength="10"'));
-        
+
         $this->selectto = $mform->addElement('text', 'numericrangeto', get_string('numeric_range_to', 'feedback'), array('size="10"','maxlength="10"'));
 
     }
 }
-?>
+
index 3bd9e5014431d0737f2ffe60de110e3753e324d9..746dfc2b04b8801b093ff47f40e920199e375a74 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 defined('FEEDBACK_INCLUDE_TEST') OR die('not allowed');
 require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
 
index bd6124dc06c9ba4757f86b78a76153ecd9db0ced..57ff0d0caa552e0db3eeda62b3f9229bccab3b3a 100644 (file)
@@ -9,26 +9,26 @@ class feedback_textarea_form extends feedback_item_form {
     var $itemlabel;
     var $selectwidth;
     var $selectheight;
-    
+
     function definition() {
         $mform =& $this->_form;
-        
+
         $mform->addElement('header', 'general', get_string($this->type, 'feedback'));
         $this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-        
+
         $this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
         $this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
-        
+
         $this->selectwidth = $mform->addElement('select',
-                                            'itemwidth', 
-                                            get_string('textarea_width', 'feedback').'&nbsp;', 
+                                            'itemwidth',
+                                            get_string('textarea_width', 'feedback').'&nbsp;',
                                             array_slice(range(0,80),5,80,true));
 
         $this->selectheight = $mform->addElement('select',
-                                            'itemheight', 
-                                            get_string('textarea_height', 'feedback').'&nbsp;', 
+                                            'itemheight',
+                                            get_string('textarea_height', 'feedback').'&nbsp;',
                                             array_slice(range(0,40),5,40,true));
 
     }
 }
-?>
+
index f972004441b6ab2e78c69e77057ccc42edeb19cd..fe18b4c51d0bb20a9995b7fafc8836f93e9f596a 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 defined('FEEDBACK_INCLUDE_TEST') OR die('not allowed');
 require_once($CFG->dirroot.'/mod/feedback/item/feedback_item_class.php');
 
index d468958a75b773a9a50fa96e98c879dc999618ca..4d1664cc5131fa34eb24a0141df2952962342aa5 100644 (file)
@@ -9,26 +9,26 @@ class feedback_textfield_form extends feedback_item_form {
     var $itemlabel;
     var $selectwith;
     var $selectheight;
-    
+
     function definition() {
         $mform =& $this->_form;
-        
+
         $mform->addElement('header', 'general', get_string($this->type, 'feedback'));
         $this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
-        
+
         $this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
         $this->itemlabel = $mform->addElement('text', 'itemlabel', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
-        
+
         $this->selectwith = $mform->addElement('select',
-                                            'itemsize', 
-                                            get_string('textfield_size', 'feedback').'&nbsp;', 
+                                            'itemsize',
+                                            get_string('textfield_size', 'feedback').'&nbsp;',
                                             array_slice(range(0,255),5,255,true));
 
         $this->selectheight = $mform->addElement('select',
-                                            'itemmaxlength', 
-                                            get_string('textfield_maxlength', 'feedback').'&nbsp;', 
+                                            'itemmaxlength',
+                                            get_string('textfield_maxlength', 'feedback').'&nbsp;',
                                             array_slice(range(0,255),5,255,true));
 
     }
 }
-?>
+
index 6f9e5bbd90de7184f3a91cf2f4f34eada3f67420..cdeae9164877453fc479100fa86a3bc19f4ce5f1 100644 (file)
@@ -131,4 +131,3 @@ echo $OUTPUT->box_end();
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 1eedc587e3d946ff5a75245c0b96bcc370efbe2b..099025e2fcdde394722849671b3dec495e5957da 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
 * print the form to add or edit a feedback-instance
 *
@@ -80,7 +80,7 @@ class mod_feedback_mod_form extends moodleform_mod {
 
         $mform->addElement('htmleditor', 'page_after_submit', get_string("page_after_submit", "feedback"), array('rows' => 20));
         $mform->setType('page_after_submit', PARAM_RAW);
-        
+
         $mform->addElement('text', 'site_after_submit', get_string('url_for_continue_button', 'feedback'), array('size'=>'64','maxlength'=>'255'));
         $mform->setType('site_after_submit', PARAM_TEXT);
         $mform->setHelpButton('site_after_submit', array('url_for_continue', get_string('url_for_continue_button', 'feedback'), 'feedback'));
@@ -111,4 +111,3 @@ class mod_feedback_mod_form extends moodleform_mod {
     }
 
 }
-?>
\ No newline at end of file
index 7e1557e425e79a6271b8388d8e4b21021cde56a2..615eeb682c5df7d8c3b49a18ffc69b06a536e867 100644 (file)
@@ -97,4 +97,3 @@ echo $OUTPUT->continue_button('view.php?id='.$id);
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 7a6f8853c5240e20b29519bedcb290857798d2fa..0e36011d7f98679c5927b3dfcfe509204419c81e 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
     //This php script contains all the stuff to backup/restore
     //feedback mods
 
     //             message->text of each feedback_posting
     //
     //-----------------------------------------------------------
-     
+
     define('FEEDBACK_MULTICHOICERESTORE_TYPE_SEP', '>>>>>');
 
     function feedback_restore_mods($mod,$restore) {
         global $CFG, $DB;
-        
+
         // $allValues = array();
         // $allTrackings = array();
 
         $status = true;
         $restore_userdata = restore_userdata_selected($restore,'feedback',$mod->id);
-        
+
         //Get record from backup_ids
         $data = backup_getid($restore->backup_unique_code,$mod->modtype,$mod->id);
         if ($data) {
-            //Now get completed xmlized object    
+            //Now get completed xmlized object
             $info = $data->info;
-            
+
             //check of older backupversion of feedback
             $version = intval(backup_todb($info['MOD']['#']['VERSION']['0']['#']));
-            
+
             //Now, build the feedback record structure
             $feedback->course = $restore->course_id;
             $feedback->name = backup_todb($info['MOD']['#']['NAME']['0']['#']);
@@ -63,7 +63,7 @@
 
             //The structure is equal to the db, so insert the feedback
             $newid = $DB->insert_record ("feedback",$feedback);
-            
+
             //create events
             // the open-event
             if($feedback->timeopen > 0) {
                 } else {
                   $event->timeduration = 0;
                 }
-            
+
                 add_event($event);
             }
-        
+
             // the close-event
             if($feedback->timeclose > 0) {
                 $event = NULL;
                 $event->timestart    = $feedback->timeclose;
                 $event->visible      = instance_is_visible('feedback', $feedback);
                 $event->timeduration = 0;
-            
+
                 add_event($event);
              }
 
-            //Do some output      
+            //Do some output
             echo "<ul><li>".get_string("modulename","feedback")." \"".$feedback->name."\"<br />";
             backup_flush(300);
 
                                     $tracking->userid = $user->new_id;
                                 }
                             }
-                            
+
                             //save the tracking
                             $newtrackingid = $DB->insert_record('feedback_tracking', $tracking);
                             $tracking->id = $newtrackingid;
                             // $allTrackings[] = $tracking;
                         }
                     }
-                    
+
                     //restore completeds
                     if(isset($info['MOD']['#']['COMPLETEDS']['0']['#']['COMPLETED'])) {
                         $completeds = $info['MOD']['#']['COMPLETEDS']['0']['#']['COMPLETED'];
                             }
                             //later this have to be changed
                             $oldcompletedid = backup_todb($completed_info['#']['ID']['0']['#']);
-                            
+
                             //save the completed
                             $newcompletedid = $DB->insert_record('feedback_completed', $completed);
-                            
+
                             //the newcompletedid have to be changed at every values
                             $tochangevals = $DB->get_records('feedback_value', array('tmp_completed'=>$oldcompletedid));
                             if($tochangevals) {
                                     $DB->update_record('feedback_value', $tmpVal);
                                 }
                             }
-                        
+
                             //the newcompletedid have to be changed at every tracking
                             $tochangetracks = $DB->get_records('feedback_tracking', array('completed'=>$oldcompletedid));
                             if($tochangetracks) {
                         }
                     }
                 }
-                
+
                 //We have the newid, update backup_ids
                 backup_putid($restore->backup_unique_code,$mod->modtype, $mod->id, $newid);
             } else {
                 $status = false;
             }
 
-            //Finalize ul          
+            //Finalize ul
             echo "</ul>";
-      
+
         } else {
             $status = false;
         }
     function feedback_restore_logs($restore,$log) {
 
         $status = false;
-        
+
         //Depending of the action, we recode different things
         switch ($log->action) {
         case "add":
         return $status;
     }
 
-?>
+
index f8952a6179290030d3f8d0a136376fd4556b230c..df7c63853f650829112d218a01dbf36458a40d52 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
 * prints the tabbed bar
 *
     }
 
     $row[] = new tabobject('view', $CFG->wwwroot.htmlspecialchars('/mod/feedback/view.php?id='.$id.'&do_show=view'), get_string('overview', 'feedback'));
-    
+
     if($capabilities->edititems) {
         $row[] = new tabobject('edit', $CFG->wwwroot.htmlspecialchars('/mod/feedback/edit.php?id='.$id.'&do_show=edit'), get_string('edit_items', 'feedback'));
         $row[] = new tabobject('templates', $CFG->wwwroot.htmlspecialchars('/mod/feedback/edit.php?id='.$id.'&do_show=templates'), get_string('templates', 'feedback'));
     }
-    
+
     if($capabilities->viewreports) {
         if($feedback->course == SITEID){
             $row[] = new tabobject('analysis', $CFG->wwwroot.htmlspecialchars('/mod/feedback/analysis_course.php?id='.$id.'&courseid='.$courseid.'&do_show=analysis'), get_string('analysis', 'feedback'));
             $row[] = new tabobject('analysis', $CFG->wwwroot.htmlspecialchars('/mod/feedback/analysis.php?id='.$id.'&courseid='.$courseid.'&do_show=analysis'), get_string('analysis', 'feedback'));
         }
     }
-    
+
     if($capabilities->viewreports) {
         $row[] = new tabobject('showentries', $CFG->wwwroot.htmlspecialchars('/mod/feedback/show_entries.php?id='.$id.'&do_show=showentries'), get_string('show_entries', 'feedback'));
     }
-    
+
     if(count($row) > 1) {
         $tabs[] = $row;
 
         print_tabs($tabs, $current_tab, $inactive, $activated);
     }
-?>
+
index 0976b5a052fe2855bf1bc047939c847ea288f0f4..042677067e28d3a518f75fb3b4436824b643c079 100644 (file)
@@ -49,4 +49,3 @@ if ($DB->delete_records('feedback_sitecourse_map', array('id'=>$cmapid))) {
     print_error('cannotunmap', 'feedback');
 }
 
-?>
\ No newline at end of file
index 67f4151ea8f4e0508c943571afa1da416d4c6f37..734ed42683640777a848030d4b67deec13be32fb 100644 (file)
@@ -123,4 +123,3 @@ if(is_array($templateitems)){
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index dca0b9ca876610463849ea29ec7cc1987a5af894..ba95a5d232c3c1ac6ba30ced62c68155c9ddb575 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
 * prints the form to confirm use template
 *
@@ -16,7 +16,7 @@ class mod_feedback_use_templ_form extends moodleform {
 
         //headline
         $mform->addElement('header', 'general', '');
-        
+
         // visible elements
         $mform->addElement('radio', 'deleteolditems', get_string('delete_old_items', 'feedback'), '', 1);
         $mform->addElement('radio', 'deleteolditems', get_string('append_new_items', 'feedback'), '', 0);
@@ -38,4 +38,4 @@ class mod_feedback_use_templ_form extends moodleform {
 
     }
 }
-?>
+
index 7093fb5e2976a8df4861c75de258ce953876ff79..5bb5ac8bb24a91b270ea247402e15dc2e580fd1f 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 /**
 * Code fragment to define the version of feedback
 * This fragment is called by moodle_needs_upgrading() and /admin/index.php
@@ -9,10 +9,10 @@
 * @package feedback
 */
 
-   
+
     $module->version = 2009052701; // The current module version (Date: YYYYMMDDXX)
     $module->requires = 2009041700;  // Requires this Moodle version
     $feedback_version_intern = 1; //this version is used for restore older backups
     $module->cron = 0; // Period for cron to check this module (secs)
 
-?>
+
index fe69ea70f891bfeee883c6b32bdb8e9a963894c5..f8116592c6f4c8ed012865c94fbf135a775a9384 100644 (file)
@@ -205,4 +205,3 @@ echo "</p>";
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 1b13717a99abcf89e52185f00e1badf578afe62c..f8bbe2d571d7f312a426ac7f8d37b7cd78c21e90 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
     //This php script contains all the stuff to backup/restore
     //forum mods
 
                                        p.discussion = s.id AND
                                        r.post = p.id", array($instanceid));
     }
-?>
+
index 7aea2fe3be390dfce3a4dc825b9625c81ee12b0d..42b4742e9796dd83669e8ea9d1712f66123edb25 100644 (file)
@@ -311,4 +311,4 @@ $mod_forum_capabilities = array(
         )
     ),
 );
-?>
+
index eb8ab485acf5cdefdbf926178bad21c2dade2ecf..c17fa21b6a8be6f4661239f4c2396e5d53c8e54d 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 // This file replaces:
 //   * STATEMENTS section in db/install.xml
index be2b995894e6969d877e97c377c7e0fdfb7f62e8..154d977cef4626838fc18839de3531b7631c1fa1 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 // Defines message providers (types of messages being sent)              //
@@ -39,4 +39,4 @@ $messageproviders = array (
 );
 
 
-?>
+
index 57582082ddeb5ca62ef18976120052b49cec5cd9..39480eb6f06588ee59b7a05b0ba1e3f405f40537 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 // This file keeps track of upgrades to
 // the forum module
@@ -267,4 +267,4 @@ function xmldb_forum_upgrade($oldversion) {
     return $result;
 }
 
-?>
+
index 46282b24462b3116b2afc9aab132fbd4e9c2ba73..241d05e53c256e666511027a02c7040af9112796 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 //  Displays a post, and all the posts below it.
 //  If no post is given, displays all posts in a discussion
     echo $OUTPUT->footer();
 
 
-?>
+
index 1824d242593ee18468383b488a381f5821f0f244..702d76ecfd4f9ab0078750472b95ed26cfcdf937 100644 (file)
@@ -417,4 +417,3 @@ if ($learningforums) {
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 7a0c45f396cacf1683a87af93ccc6e6b02b38859..1ecea4ab8469df5016ac8cac8b21d3d669a09a4a 100644 (file)
@@ -3853,7 +3853,7 @@ function forum_print_ratings($postid, $scale, $aggregatetype, $link=true, $ratin
 
             $link = html_link::make("/mod/forum/report.php?id=$postid", $agg);
             $link->add_action(new popup_action('click', $link->url, 'ratings', array('height' => 400, 'width' => 600)));
-            $strratings .= $OUTPUT->link($link);                    
+            $strratings .= $OUTPUT->link($link);
         } else {
             $strratings .= "$agg ";
         }
@@ -4436,9 +4436,9 @@ function forum_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedo
     if (!$cm = get_coursemodule_from_instance('forum', $cminfo->instance, $course->id)) {
         return false;
     }
-    
+
     require_course_login($course, true, $cm);
-    
+
     if (!$post = $DB->get_record('forum_posts', array('id'=>$postid))) {
         return false;
     }
@@ -6758,7 +6758,7 @@ function forum_tp_get_discussion_read_records($userid, $discussionid) {
 
 /**
  * If its an old post, do nothing. If the record exists, the maintenance will clear it up later.
- * 
+ *
  * @return bool
  */
 function forum_tp_mark_post_read($userid, $post, $forumid) {
@@ -7188,7 +7188,7 @@ function forum_tp_can_track_forums($forum=false, $user=false) {
 
     // if possible, avoid expensive
     // queries
-    if (empty($CFG->forum_trackreadposts)) {    
+    if (empty($CFG->forum_trackreadposts)) {
         return false;
     }
 
@@ -8250,7 +8250,7 @@ function forum_extend_navigation($navref, $course, $module, $cm) {
     global $CFG, $OUTPUT, $USER;
 
     $limit = 5;
-    
+
     $discussions = forum_get_discussions($cm,"d.timemodified DESC", false, -1, $limit);
     $discussioncount = forum_get_discussions_count($cm);
     if (!is_array($discussions) || count($discussions)==0) {
@@ -8354,7 +8354,7 @@ function forum_extend_settings_navigation($settingsnav, $module=null) {
                 $url = new moodle_url($CFG->wwwroot.'/mod/forum/subscribers.php', array('id'=>$forumobject->id));
                 $forum->add(get_string('showsubscribers', 'forum'), $url, navigation_node::TYPE_SETTING);
             }
-            
+
             if (forum_is_forcesubscribed($forumobject) || ($forumobject->forcesubscribe == FORUM_DISALLOWSUBSCRIBE && !has_capability('mod/forum:managesubscriptions', $PAGE->cm->context))) {
                 // Do nothing
             } else {
index bd7ff27fc50a2bc3c1564e9dbf2c0d573e73c4e5..a9b151ccf872f3b499a2380e382c3fa93755f91b 100644 (file)
@@ -88,4 +88,3 @@ if ($mark == 'read') {
 
 redirect($returnto);
 
-?>
\ No newline at end of file
index d9c7630998171a0e7809fd32a749e289fef2a2b5..efcd79937cd9bae0c3f32a5fd3460ee37a50b0c9 100644 (file)
@@ -252,4 +252,4 @@ class mod_forum_mod_form extends moodleform_mod {
         return $data;
     }
 }
-?>
+
index 8607bc6b3be9200a0270ab39db27f915e2c5cdbb..9f2f1da12bc14fdb3b06e4ec02e7a8c19a69cd3c 100644 (file)
@@ -817,4 +817,3 @@ $mform_post->display();
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index e77b14333a841ce7b6f74323146364a7849ee699..200e8bdcbd6fdf7b53b5a1660989ff7d0751e609 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
 require_once($CFG->libdir.'/formslib.php');
 
index 8d2266305879273ad306fb1dedc5608658b62b5a..aee44a83842843ea5584af5e329ce861f5f607e9 100644 (file)
@@ -107,4 +107,3 @@ if ($data = data_submitted()) {
     print_error('invalidaccess', 'forum');
 }
 
-?>
\ No newline at end of file
index d252aa5755608d97b0a340762e26b8228bc33108..4581d317894289f3e3d4e4eefcd1a21afd1b0917 100644 (file)
@@ -1,5 +1,3 @@
-// $Id$
-
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // NOTICE OF COPYRIGHT                                                   //
index 376acd2fabd491251be4b4ec08ee1eae67a768b6..21b41e822becdb0276bdcfbd7ae8aacd03ed4506 100644 (file)
@@ -154,4 +154,3 @@ $response['status']  = 'Ok';
 $response['message'] = $rateinfo;
 echo json_encode($response);
 
-?>
\ No newline at end of file
index 83566313c0bae7b7262fd33ab0a117fae190daff..1b576f5321a74278feb1b521e5ce4ef43c08de66 100644 (file)
@@ -91,4 +91,3 @@ if (!$ratings = forum_get_ratings($post->id, $sqlsort)) {
 echo $OUTPUT->close_window_button();
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 7fb7f455845c05c8048b314c7d8561eeca962582..06f0778a9e486d78b54051940010078431204b21 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
     //This php script contains all the stuff to backup/restore
     //forum mods
 
 
         return $status;
     }
-?>
+
index 8a9cb76d80701d2bfb9c9b37e7be0110efc74038..69034265faa0cd9ab9a20702c40e6fdd2a818eb4 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
     //This file adds support to rss feeds generation
 
     //This function is the main entry point to forum
         }
         return $items;
     }
-?>
+
index 1280c2c4b796dfa2fda7ea65c4604441ad3e339f..b61e0184cd9c5a64d17f20a6d0eb9e555fd7884a 100644 (file)
@@ -406,4 +406,3 @@ function forum_menu_list($course)  {
     return $menu;
 }
 
-?>
\ No newline at end of file
index b554d044c72dce5f0b08c3abf8b8527a34496fe4..2e44c7c8c07532b0da7bde8cbbb84512ccf293d4 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 require_once($CFG->dirroot.'/mod/forum/lib.php');
 
@@ -70,4 +70,4 @@ $settings->add(new admin_setting_configcheckbox('forum_logblocked', get_string('
 $settings->add(new admin_setting_configcheckbox('forum_ajaxrating', get_string('ajaxrating', 'forum'),
                    get_string('configajaxrating', 'forum'), 0));
 
-?>
+
index 05e848f4671a69a83e054c340bad82d33ae96703..0542e657649aae868a545e080a1ed48afa868c8b 100644 (file)
@@ -54,4 +54,4 @@ if (forum_tp_is_tracked($forum) ) {
     }
 }
 
-?>
+
index e353e195ca265ca0b1a1e7c9393161651ce38f26..88eb9617cf83eb01c5bc873361ab23f301ff73f3 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 require_once("$CFG->libdir/simpletest/portfolio_testclass.php");
 require_once("$CFG->dirroot/mod/forum/lib.php");
 require_once("$CFG->dirroot/$CFG->admin/generator.php");
@@ -71,4 +71,4 @@ class testForumPortfolioCallers extends portfoliolib_test {
         parent::test_caller_with_plugins();
     }
 }
-?>
+
index 89da4494a59ba0ba79ca19a118b75d61b5f7b41d..4e71e4f211cfc15525ae788cf700e7c408185eaf 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
@@ -59,4 +59,4 @@ class modforumlib_test extends UnitTestCase {
     }
 }
 
-?>
+
index 21c344821a01e9f1402447ed2688f76c81fdca50..9624fbfd8a6091417c37e2f16c56e96b29dafe13 100644 (file)
@@ -112,4 +112,3 @@ if (forum_is_subscribed($user->id, $forum->id)) {
     }
 }
 
-?>
\ No newline at end of file
index 61cf82743be800238a2034e5e69978e2b7985291..35c7d6ec484b4ffa536937badaff110323c874d1 100644 (file)
@@ -161,4 +161,3 @@ echo $OUTPUT->box_end();
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index c06aec86e0339bddcdf1e88ea3f7f655cd2fb547..a29996d3b91afe7efa7d982affaa1b48eb85fed2 100644 (file)
@@ -111,7 +111,7 @@ if ($course->id == SITEID) {
 // Get the posts.
 if ($posts = forum_search_posts($searchterms, $searchcourse, $page*$perpage, $perpage,
             $totalcount, $extrasql)) {
-    
+
     $baseurl = new moodle_url('user.php', array('id' => $user->id, 'course' => $course->id, 'mode' => $mode, 'perpage' => $perpage));
     echo $OUTPUT->paging_bar(moodle_paging_bar::make($totalcount, $page, $perpage, $baseurl));
 
@@ -191,4 +191,3 @@ if ($posts = forum_search_posts($searchterms, $searchcourse, $page*$perpage, $pe
 echo '</div>';
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index a11bd8a2b64a6174c87dc79de865e4ff1614512d..a75b9412caf9789f34659e8fa819ec6d42bbd5d1 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the module version etc.
@@ -9,4 +9,4 @@ $module->version  = 2009050400;
 $module->requires = 2009041700;  // Requires this Moodle version
 $module->cron     = 60;
 
-?>
+
index 6a1acc851be498569f197f80851e266d20af2c20..9e0c9249884c2ebb3b5aea54da5457e999921198 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
 
     require_once('../../config.php');
     require_once('lib.php');
     $completion->set_module_viewed($cm);
     echo $OUTPUT->footer($course);
 
-?>
+
index 7bfa9ba85f1fd50f31883f44232373e8e161a941..4164a287b76ec5ba643f95495c6bb033e338b95d 100644 (file)
@@ -48,4 +48,3 @@ add_to_log($course->id, "glossary", "approve entry", "showentry.php?id=$cm->id&a
 redirect("view.php?id=$cm->id&amp;mode=$mode&amp;hook=$hook",get_string("entryapproved","glossary"),1);
 die;
 
-?>
\ No newline at end of file
index 4e080f23a53434289ed97c90a266e50b8436d4ed..f9fc4e55b97622d66a364a459bec3faacab6173e 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
     //This php script contains all the stuff to backup/restore
     //glossary mods
 
                                         FROM {glossary_entries} s
                                        WHERE s.glossaryid = ?", array($instanceid));
     }
-?>
+
index 8ab68341234c6a96174bd9b0fd551237a472991f..2d597748559e6a438971efb2e8616bef4f749558 100644 (file)
@@ -230,7 +230,7 @@ function glossary_comment_print_header($course, $cm, $glossary, $entry, $action)
     $PAGE->set_title(format_string($glossary->name));
     $PAGE->set_button($OUTPUT->update_module_button($cm->id, 'glossary'));
     echo $OUTPUT->header();
-    
+
 /// print original glossary entry for any comment action (add, update, delete)
     glossary_print_entry($course, $cm, $glossary, $entry, 'approval', '', false);
 }
index 5498da5817e9c82bdc4835e8356f1d44e1cc6452..14d0e1f52cb9a4f786a7cc1e0026771576e4e7c3 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
 
 require_once $CFG->libdir.'/formslib.php';
 
index 67497ccb4d7cef46dcf619ba5503b75088ca70c2..70de4cccaddef13abd131776af49e5e27be9e335 100644 (file)
@@ -75,4 +75,3 @@ if ($comments = $DB->get_records("glossary_comments", array("entryid"=>$entry->i
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 766ae4836826a7828b5230ad46d17e8ec2f25712..5cc13c0b944ef1c081753053be0d3ca9ce260f49 100644 (file)
@@ -116,4 +116,3 @@ if ($confirm and confirm_sesskey()) { // the operation was confirmed.
     echo $OUTPUT->footer();
 }
 
-?>
\ No newline at end of file
index f67b109d4bb9988777756009fe9d2958dbb72814..13b57fbd8955c9b6de4c8b3e6e45075a2ac3a0ef 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 require_once('../../config.php');
 require_once('lib.php');
index f301c8cc2280d9d81c4ec1d67c36521d3ba5d773..23db0f11d55052c8d52e44d643c86d04e511f94c 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 require_once ($CFG->dirroot.'/lib/formslib.php');
 
 class mod_glossary_entry_form extends moodleform {
@@ -126,4 +126,4 @@ class mod_glossary_entry_form extends moodleform {
         return $errors;
     }
 }
-?>
+
index 3698148c84ce0b0b1780d96a7964abc2d9a5e710..6dd0520389658240da54a22b105925a9e9b08ea4 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
     global $CFG;
     require_once("../../config.php");
 ?>
index 9640be99fe0426119b0b16571e6a5bd8c2473613..40bd32c1a50564dfcd1722f9976356eed8c0e131 100644 (file)
@@ -130,7 +130,7 @@ if ( $hook >0 ) {
 
                 <table border="0" width="100">
                     <tr>
-                        <td align="right" style="width:50%">                
+                        <td align="right" style="width:50%">
                         <form id="form" method="post" action="editcategories.php">
                         <div>
                         <input type="hidden" name="id"          value="<?php p($cm->id) ?>" />
@@ -201,7 +201,7 @@ if ( $action ) {
         </tr>
         <tr><td style="width:100%" colspan="2">
 
-        
+
 
 <?php
     $categories = $DB->get_records("glossary_categories", array("glossaryid"=>$glossary->id), "name ASC");
@@ -227,7 +227,7 @@ if ( $action ) {
              </tr>
 
              <?php
-          
+
           }
         echo '</table>';
      }
@@ -259,5 +259,5 @@ if ( $action ) {
 
 </form>
 
-<?php 
+<?php
 echo $OUTPUT->footer();
index 2d63c3e02468e0f5acd2ac970e64e55ecc20c02e..4c1e7a9843abc7ca6ffd7222ff4b96b065bd06fb 100644 (file)
@@ -120,4 +120,3 @@ if (!data_submitted() or !$confirm or !confirm_sesskey()) {
     redirect ($returnurl);
 }
 
-?>
\ No newline at end of file
index 6c3c9eeb05d320bcf606509b9ba2ac63ca1765cd..77b815babb9bd3c073394b0e62265d9c36e161b3 100644 (file)
@@ -1,4 +1,4 @@
-<?php // $Id$
+<?php
 
 function glossary_filter($courseid, $text) {
     global $CFG, $DB;
@@ -16,7 +16,7 @@ function glossary_filter($courseid, $text) {
     if (!isset($cachedcourseid) || $cachedcourseid !== (int)$courseid) {
         $conceptlist = array();
         $nothingtodo = false;
-    } 
+    }
     $cachedcourseid = (int)$courseid;
 
     if ($nothingtodo === true) {
@@ -43,7 +43,7 @@ function glossary_filter($courseid, $text) {
 
     /// Make a list of glossary IDs for searching
         $glossarylist = implode(',', array_keys($glossaries));
-   
+
 
     /// Pull out all the raw data from the database for entries, categories and aliases
         $entries = $DB->get_records_select('glossary_entries',
@@ -137,13 +137,13 @@ function glossary_filter($courseid, $text) {
             }
 
 
-            $conceptlist[] = new filterobject($concept->concept, $href_tag_begin, '</a>', 
+            $conceptlist[] = new filterobject($concept->concept, $href_tag_begin, '</a>',
                                               $concept->casesensitive, $concept->fullmatch);
         }
 
         $conceptlist = filter_remove_duplicates($conceptlist);
     }
-    
+
     global $GLOSSARY_EXCLUDECONCEPTS;
     if(!empty($GLOSSARY_EXCLUDECONCEPTS)) {
         $reducedconceptlist=array();
@@ -173,4 +173,4 @@ function glossary_sort_entries_by_length ($entry0, $entry1) {
 }
 
 
-?>
+
index 8589153c3b17c49c3d7aeacb27ec762ed2e5d905..9e32e89014565a8a5337c57e1aa2f027263b6ff8 100644 (file)
@@ -5,12 +5,12 @@
         <?php
            echo '(';
            print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes)));
-           echo ') '; 
-           echo $OUTPUT->help_icon(moodle_help_icon::make("filetoimport", get_string("filetoimport", "glossary"), "glossary")); 
+           echo ') ';
+           echo $OUTPUT->help_icon(moodle_help_icon::make("filetoimport", get_string("filetoimport", "glossary"), "glossary"));
         ?>
     </b></td>
     <td style="width:70%">
-    <?php 
+    <?php
        require_once($CFG->dirroot.'/lib/uploadlib.php');
        upload_print_form_fragment(1,array('file'),null,false,null,0,0);
     ?>
@@ -26,7 +26,7 @@
         <option value="new"><?php print_string("newglossary","glossary") ?></option>
         </select> <?php echo $OUTPUT->help_icon(moodle_help_icon::make("destination", get_string("destination", "glossary"), "glossary")) ?></td>
         <td style="width:25%" align="right"><?php print_string("importcategories","glossary") ?>:</td>
-        <td style="width:25%"><input type="checkbox" name="catsincl" value="1" alt="<?php print_string("importcategories","glossary") ?>" /> 
+        <td style="width:25%"><input type="checkbox" name="catsincl" value="1" alt="<?php print_string("importcategories","glossary") ?>" />
             <?php echo $OUTPUT->help_icon(moodle_help_icon::make("importcategories", get_string("importcategories", "glossary"), "glossary")) ?>
         </td>
       </tr>
@@ -48,4 +48,4 @@
 <input type="hidden" name="id" value="<?php p($id) ?>" />
 <input type="hidden" name="step" value="1" />
 </div>
-</form> 
+</form>
index ea530c16956abd8d9b97a01b66eedd83fc03a319..ab12f3d785a43c5eafdc32d5b96e8afdd3e202f3 100644 (file)
@@ -375,4 +375,3 @@ if ($xml = glossary_read_imported_file($file['tmp_name']) ) {
 /// Finish the page
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 77706b2d120e4250640164a65cb33049f329975c..3d0fc85517f7a4ab4f282e91ea7c6a7e825c5e87 100644 (file)
@@ -133,4 +133,3 @@ echo $OUTPUT->table($table);
 
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 3829680c534fb213c236b427cf20a5cb3c1e32fc..934abf379772b4da9406c90878a64f2fdf2aeadd 100644 (file)
@@ -536,7 +536,7 @@ function glossary_grade_item_update($glossary, $grades=NULL) {
 
 /**
  * Delete grade item for given glossary
- * 
+ *
  * @global object
  * @param object $glossary object
  */
@@ -1356,7 +1356,7 @@ function glossary_pluginfile($course, $cminfo, $context, $filearea, $args, $forc
         }
 
         require_course_login($course, true, $cm);
-        
+
         if (!$entry = $DB->get_record('glossary_entries', array('id'=>$entryid))) {
             return false;
         }
@@ -1550,7 +1550,7 @@ function glossary_print_categories_menu($cm, $glossary, $hook, $category) {
      }
      echo '</b></td>';
      echo '<td align="center" style="width:20%">';
-    
+
      $select = html_select::make_popup_form("$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&mode=cat", 'hook', $menu, "catmenu", $selected);
      $select->nothinglabel = false;
      echo $OUTPUT->select($select);
@@ -2206,7 +2206,7 @@ function glossary_count_unrated_entries($glossaryid, $userid) {
  * @param int $entryid
  * @param array $scale
  */
-function glossary_print_ratings_mean($entryid, $scale) { 
+function glossary_print_ratings_mean($entryid, $scale) {
     global $OUTPUT;
     static $strrate;
 
@@ -2221,7 +2221,7 @@ function glossary_print_ratings_mean($entryid, $scale) {
         echo "$strratings: ";
         $link = html_link::make("/mod/glossary/report.php?id=$entryid", $mean);
         $link->add_action(new popup_action('click', $link->url, "ratings"));
-        echo $OUTPUT->link($link);                    
+        echo $OUTPUT->link($link);
     }
 }
 
@@ -2358,7 +2358,7 @@ function glossary_print_rating_menu($entryid, $userid, $scale) {
  * @param int $page page currently selected (0 based)
  * @param int $perpage number of records per page
  * @param string $baseurl url to link in each page, the string 'page=XX' will be added automatically.
- * 
+ *
  * @param int $maxpageallowed Optional maximum number of page allowed.
  * @param int $maxdisplay Optional maximum number of page links to show in the bar
  * @param string $separator Optional string to be used between pages in the bar
index ee265f2542577e3d3c47dd1287a56fa05481c1cd..6e87f516461a3459e162468fa6ba0018e8001962 100644 (file)
@@ -187,4 +187,4 @@ class mod_glossary_mod_form extends moodleform_mod {
     }
 
 }
-?>
+
index 090bd7bbda645274df8b01d7d836ab879587733e..c6c2e4e97f7474897e7929328a9b9551b153241c 100644 (file)
@@ -203,4 +203,3 @@ if ( $allentries ) {
 }
 
 echo $OUTPUT->footer();
-?>
\ No newline at end of file
index 1c6c3f36852a57b945d90ed11c0c9f142b40349e..ad37822d00c744454faf61bba1d1954020e8dc88 100644 (file)
@@ -1,4 +1,4 @@
-<?php   // $Id$
+<?php
 
 //  Collect ratings, store them, then return to where we came from
 
         print_error('invalidaccess');
     }
 
-?>
+
index 4e4ffda3a237e5fbc989ecac4f68fc5ea2afde53..7f1f6dc8fe1a2551ad2f28398980d11ab7fb0b93 100644 (file)
@@ -91,4 +91,3 @@ if (!$ratings = glossary_get_ratings($entry->id, $sqlsort)) {
 echo $OUTPUT->close_window_button();
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index baad6856f2501e732010fa1ad2735fe1ef9f1fde..9d8d4d3f7502a08c40888745ff4521dd3e385686 100644 (file)
@@ -1,4 +1,4 @@
-<?php //$Id$
+<?php
     //This php script contains all the stuff to backup/restore
     //glossary mods
 
         }
         return $status;
     }
-?>
+
index 3d54aff64073566d5e10da70c4e692f9a4830469..a7b723692856caa8fb8eda520d342838629a5524 100644 (file)
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
     //This file adds support to rss feeds generation
 
     //This function is the main entry point to glossary
         return $items;
     }
 
-?>
+
index 90a62572c3f2c6b591838d63c3828f74256c7b21..16ffaae61d7874b10dc4a4536040f4d4b9ae30cc 100644 (file)
@@ -1,4 +1,4 @@
-<?php  //$Id$
+<?php
 
 require_once($CFG->dirroot.'/mod/glossary/lib.php');
 
index 3fc116dfb1d68e2a506098b2fe9197b06af9da34..0e14cd75bbaf4338c9494ad0aa78c5b73542f727 100644 (file)
@@ -83,4 +83,3 @@ echo $OUTPUT->close_window_button();
 /// Show one reduced footer
 echo $OUTPUT->footer();
 
-?>
\ No newline at end of file
index 3d73ecaff64438272219bc156e8e88b74c604091..ce30c9013a4cabefddc0b4adef3412cb100a114a 100644 (file)
@@ -3,7 +3,6 @@
 /**
  * SQL.PHP
  *    This file is include from view.php and print.php
- * @version $Id$
  * @copyright 2003
  **/
 
     }
 
     $allentries = $DB->get_records_sql("$sqlselect $sqlfrom $sqlwhere $sqlorderby", $params, $limitfrom, $limitnum);
-?>
+