From 15005d91f0e31a39350b1a4ef49e0df92ca92f88 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Tue, 5 May 2015 18:23:21 +0200 Subject: [PATCH] MDL-50102 versions: coding style cleanup. --- backup/backup.class.php | 10 +++++++++- enrol/imsenterprise/version.php | 2 +- filter/data/version.php | 2 +- filter/glossary/version.php | 2 +- filter/mathjaxloader/version.php | 2 +- mod/book/tool/exportimscp/version.php | 2 +- mod/book/tool/importhtml/version.php | 2 +- mod/book/tool/print/version.php | 2 +- mod/workshop/allocation/manual/version.php | 4 ++-- mod/workshop/eval/best/version.php | 2 +- mod/workshop/form/accumulative/version.php | 2 +- mod/workshop/form/comments/version.php | 2 +- mod/workshop/form/numerrors/version.php | 2 +- mod/workshop/form/rubric/version.php | 2 +- mod/workshop/version.php | 8 ++++---- 15 files changed, 27 insertions(+), 19 deletions(-) diff --git a/backup/backup.class.php b/backup/backup.class.php index 5520cc408da..dfa28a52169 100644 --- a/backup/backup.class.php +++ b/backup/backup.class.php @@ -125,8 +125,16 @@ abstract class backup implements checksumable { const OPERATION_BACKUP ='backup'; // We are performing one backup const OPERATION_RESTORE ='restore';// We are performing one restore - // Version (to keep CFG->backup_version (and release) updated automatically) + // Version and release (to keep CFG->backup_version (and release) updated automatically). + /** + * Usually same than major release version, this is used to mark important + * point is backup when some behavior/approach channged, in order to allow + * conditional coding based on it. + */ const VERSION = 2015051100; + /** + * Usually same than major release zero version, mainly for informative/historic purposes. + */ const RELEASE = '2.9'; } diff --git a/enrol/imsenterprise/version.php b/enrol/imsenterprise/version.php index 8753f917bbf..89a503ef349 100644 --- a/enrol/imsenterprise/version.php +++ b/enrol/imsenterprise/version.php @@ -25,5 +25,5 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX) -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. $plugin->component = 'enrol_imsenterprise'; diff --git a/filter/data/version.php b/filter/data/version.php index 257dc75ede7..72211d69677 100644 --- a/filter/data/version.php +++ b/filter/data/version.php @@ -26,7 +26,7 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2015051100; -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. $plugin->component= 'filter_data'; $plugin->dependencies = array('mod_data' => 2015050500); diff --git a/filter/glossary/version.php b/filter/glossary/version.php index cae18ae64c4..325a3e717ff 100644 --- a/filter/glossary/version.php +++ b/filter/glossary/version.php @@ -26,7 +26,7 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2015051100; -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. $plugin->component= 'filter_glossary'; $plugin->dependencies = array('mod_glossary' => 2015050500); diff --git a/filter/mathjaxloader/version.php b/filter/mathjaxloader/version.php index 36ecd83df8b..2a59ff070a1 100644 --- a/filter/mathjaxloader/version.php +++ b/filter/mathjaxloader/version.php @@ -25,5 +25,5 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2015051100; -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. $plugin->component= 'filter_mathjaxloader'; diff --git a/mod/book/tool/exportimscp/version.php b/mod/book/tool/exportimscp/version.php index 3f04b365555..97ccd8fe418 100644 --- a/mod/book/tool/exportimscp/version.php +++ b/mod/book/tool/exportimscp/version.php @@ -26,4 +26,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->component = 'booktool_exportimscp'; // Full name of the plugin (used for diagnostics) $plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX) -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. diff --git a/mod/book/tool/importhtml/version.php b/mod/book/tool/importhtml/version.php index a58f939646a..c3c41a1ec30 100644 --- a/mod/book/tool/importhtml/version.php +++ b/mod/book/tool/importhtml/version.php @@ -26,4 +26,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->component = 'booktool_importhtml'; // Full name of the plugin (used for diagnostics) $plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX) -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. diff --git a/mod/book/tool/print/version.php b/mod/book/tool/print/version.php index e215892d250..3dc15bb7536 100644 --- a/mod/book/tool/print/version.php +++ b/mod/book/tool/print/version.php @@ -26,4 +26,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->component = 'booktool_print'; // Full name of the plugin (used for diagnostics) $plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX) -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. diff --git a/mod/workshop/allocation/manual/version.php b/mod/workshop/allocation/manual/version.php index ca5689b2503..14d1b924ce2 100644 --- a/mod/workshop/allocation/manual/version.php +++ b/mod/workshop/allocation/manual/version.php @@ -26,5 +26,5 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2015051100; -$plugin->requires = 2015050500; // Requires this Moodle version -$plugin->component = 'workshopallocation_manual'; \ No newline at end of file +$plugin->requires = 2015050500; // Requires this Moodle version. +$plugin->component = 'workshopallocation_manual'; diff --git a/mod/workshop/eval/best/version.php b/mod/workshop/eval/best/version.php index ba28b22fe72..530e79013ac 100644 --- a/mod/workshop/eval/best/version.php +++ b/mod/workshop/eval/best/version.php @@ -26,5 +26,5 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2015051100; -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. $plugin->component = 'workshopeval_best'; diff --git a/mod/workshop/form/accumulative/version.php b/mod/workshop/form/accumulative/version.php index 8d3d839c1e8..3aa836a213a 100644 --- a/mod/workshop/form/accumulative/version.php +++ b/mod/workshop/form/accumulative/version.php @@ -29,5 +29,5 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2015051100; -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. $plugin->component = 'workshopform_accumulative'; diff --git a/mod/workshop/form/comments/version.php b/mod/workshop/form/comments/version.php index 31809ef99c3..bbeaf8b9120 100644 --- a/mod/workshop/form/comments/version.php +++ b/mod/workshop/form/comments/version.php @@ -29,5 +29,5 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2015051100; -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. $plugin->component = 'workshopform_comments'; diff --git a/mod/workshop/form/numerrors/version.php b/mod/workshop/form/numerrors/version.php index d6347978d3b..5cccf566d7b 100644 --- a/mod/workshop/form/numerrors/version.php +++ b/mod/workshop/form/numerrors/version.php @@ -29,5 +29,5 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2015051100; -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. $plugin->component = 'workshopform_numerrors'; diff --git a/mod/workshop/form/rubric/version.php b/mod/workshop/form/rubric/version.php index e8ed0acfad7..806f03bcc98 100644 --- a/mod/workshop/form/rubric/version.php +++ b/mod/workshop/form/rubric/version.php @@ -29,5 +29,5 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2015051100; -$plugin->requires = 2015050500; // Requires this Moodle version +$plugin->requires = 2015050500; // Requires this Moodle version. $plugin->component = 'workshopform_rubric'; diff --git a/mod/workshop/version.php b/mod/workshop/version.php index a2bc59e3ebc..202e2c477c9 100644 --- a/mod/workshop/version.php +++ b/mod/workshop/version.php @@ -24,7 +24,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2015051100; // the current module version (YYYYMMDDXX) -$plugin->requires = 2015050500; // requires this Moodle version -$plugin->component = 'mod_workshop'; // full name of the plugin (used for diagnostics) -$plugin->cron = 60; // give as a chance every minute +$plugin->version = 2015051100; // The current module version (YYYYMMDDXX) +$plugin->requires = 2015050500; // Requires this Moodle version. +$plugin->component = 'mod_workshop'; +$plugin->cron = 60; // Give as a chance every minute.