diff --git a/lib/editor/textarea/lang/en/editor_textarea.php b/lib/editor/textarea/lang/en/editor_textarea.php index 0d6382095bb..a3aa32f9f19 100644 --- a/lib/editor/textarea/lang/en/editor_textarea.php +++ b/lib/editor/textarea/lang/en/editor_textarea.php @@ -18,9 +18,10 @@ /** * Strings for component 'editor_textarea', language 'en', branch 'MOODLE_20_STABLE' * - * @package editor_textarea - * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @package editor + * @subpackage textarea + * @copyright 2009 Petr Skoda (http://skodak.org) + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $string['pluginname'] = 'Plain text area'; diff --git a/lib/editor/textarea/lib.php b/lib/editor/textarea/lib.php index 936de29fb3e..9c8bc31215c 100644 --- a/lib/editor/textarea/lib.php +++ b/lib/editor/textarea/lib.php @@ -18,11 +18,14 @@ /** * Failsafe textarea editor support. * - * @package editor_textarea + * @package editor + * @subpackage textarea * @copyright 2009 Petr Skoda (http://skodak.org) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); + class textarea_texteditor extends texteditor { public function supported_by_browser() { return true; diff --git a/lib/editor/textarea/version.php b/lib/editor/textarea/version.php index 6ead9bafda0..064c32fed0b 100644 --- a/lib/editor/textarea/version.php +++ b/lib/editor/textarea/version.php @@ -16,12 +16,15 @@ // along with Moodle. If not, see . /** - * Failsafe textare editor support version file. + * Failsafe textarea editor support version file. * - * @package editor_textarea + * @package editor + * @subpackage textarea * @copyright 2009 Petr Skoda (http://skodak.org) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); + $plugin->version = 2009051400; $plugin->requires = 2009051200; diff --git a/lib/editor/tinymce/extra/strings.php b/lib/editor/tinymce/extra/strings.php index 6a398321f9c..74c09f3c0b3 100644 --- a/lib/editor/tinymce/extra/strings.php +++ b/lib/editor/tinymce/extra/strings.php @@ -18,7 +18,8 @@ /** * On-the-fly conversion of Moodle lang strings to TinyMCE expected JS format. * - * @package editor_tinymce + * @package editor + * @subpackage tinymce * @copyright 2009 Petr Skoda (http://skodak.org) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ diff --git a/lib/editor/tinymce/extra/tools/update_lang_files.php b/lib/editor/tinymce/extra/tools/update_lang_files.php index 538c4d896b8..4381781cf5a 100644 --- a/lib/editor/tinymce/extra/tools/update_lang_files.php +++ b/lib/editor/tinymce/extra/tools/update_lang_files.php @@ -18,8 +18,8 @@ /** * This script imports TinyMCE lang strings into Moodle lang packs. * - * @package moodlecore - * @subpackage editor + * @package editor + * @subpackage tinymce * @copyright 2009 Petr Skoda (http://skodak.org) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ diff --git a/lib/editor/tinymce/lang/en/editor_tinymce.php b/lib/editor/tinymce/lang/en/editor_tinymce.php index 7066f6e3cc5..4ad9bdfef18 100644 --- a/lib/editor/tinymce/lang/en/editor_tinymce.php +++ b/lib/editor/tinymce/lang/en/editor_tinymce.php @@ -18,7 +18,8 @@ /** * Strings for component 'editor_tinymce', language 'en', branch 'MOODLE_20_STABLE' * - * @package editor_tinymce + * @package editor + * @subpackage tinymce * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ diff --git a/lib/editor/tinymce/lib.php b/lib/editor/tinymce/lib.php index e144d3470e7..b6b2ab09449 100644 --- a/lib/editor/tinymce/lib.php +++ b/lib/editor/tinymce/lib.php @@ -18,11 +18,14 @@ /** * TinyMCE text editor integration. * - * @package editor_tinymce + * @package editor + * @subpackage tinymce * @copyright 2009 Petr Skoda (http://skodak.org) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); + class tinymce_texteditor extends texteditor { /** @var string active version - directory name */ public $version = '3.3.8'; diff --git a/lib/editor/tinymce/settings.php b/lib/editor/tinymce/settings.php index 451ea43e360..9f406d6f3ae 100644 --- a/lib/editor/tinymce/settings.php +++ b/lib/editor/tinymce/settings.php @@ -18,7 +18,8 @@ /** * TinyMCE admin settings * - * @package editor_tinymce + * @package editor + * @subpackage tinymce * @copyright 2009 Petr Skoda (http://skodak.org) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ diff --git a/lib/editor/tinymce/version.php b/lib/editor/tinymce/version.php index d3849f074ae..c576615c765 100644 --- a/lib/editor/tinymce/version.php +++ b/lib/editor/tinymce/version.php @@ -18,11 +18,14 @@ /** * TinyMCE text editor integration version file. * - * @package editor_tinymce + * @package editor + * @subpackage tinymce * @copyright 2009 Petr Skoda (http://skodak.org) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); + $plugin->version = 2010070400; $plugin->requires = 2010070300; $plugin->release = '3.3.8'; \ No newline at end of file diff --git a/lib/grade/constants.php b/lib/grade/constants.php index c8583f31a65..f26390ced4e 100644 --- a/lib/grade/constants.php +++ b/lib/grade/constants.php @@ -17,12 +17,14 @@ /** * Definitions of constants for gradebook * - * @package moodlecore + * @package core * @subpackage grade * @copyright 2007 Nicolas Connault * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - + +defined('MOODLE_INTERNAL') || die(); + // category aggregation types define('GRADE_AGGREGATE_MEAN', 0); define('GRADE_AGGREGATE_MEDIAN', 2); diff --git a/lib/grade/grade_category.php b/lib/grade/grade_category.php index 6ca0608f4a8..1b2baac45ba 100644 --- a/lib/grade/grade_category.php +++ b/lib/grade/grade_category.php @@ -17,11 +17,14 @@ /** * Definitions of constants for gradebook * - * @package moodlecore + * @package core * @subpackage grade * @copyright 2006 Nicolas Connault * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ + +defined('MOODLE_INTERNAL') || die(); + require_once('grade_object.php'); /** @@ -1513,7 +1516,7 @@ class grade_category extends grade_object { //Flip from the default of 0 to 1 (or vice versa) if ALL items in the category are still set to the old default. if ($params->aggregation==GRADE_AGGREGATE_WEIGHTED_MEAN || $params->aggregation==GRADE_AGGREGATE_EXTRACREDIT_MEAN) { $sql = $defaultaggregationcoef = null; - + if ($params->aggregation==GRADE_AGGREGATE_WEIGHTED_MEAN) { //if all items in this category have aggregation coefficient of 0 we can change it to 1 ie evenly weighted $sql = "select count(id) from {grade_items} where categoryid=:categoryid and aggregationcoef!=0"; diff --git a/lib/grade/grade_grade.php b/lib/grade/grade_grade.php index 35c2e7346fc..4bbc427b2dc 100644 --- a/lib/grade/grade_grade.php +++ b/lib/grade/grade_grade.php @@ -1,27 +1,29 @@ . +/** + * Definitions of grade grade class + * + * @package core + * @subpackage grade + * @copyright 2006 Nicolas Connault + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined('MOODLE_INTERNAL') || die(); require_once('grade_object.php'); diff --git a/lib/grade/grade_item.php b/lib/grade/grade_item.php index 6ef41d8cc6c..0c5d031399b 100644 --- a/lib/grade/grade_item.php +++ b/lib/grade/grade_item.php @@ -1,28 +1,29 @@ . +/** + * Definitions of grade item class + * + * @package core + * @subpackage grade + * @copyright 2006 Nicolas Connault + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +defined('MOODLE_INTERNAL') || die(); require_once('grade_object.php'); /** diff --git a/lib/grade/grade_object.php b/lib/grade/grade_object.php index 3c21b00700a..72a86e2ab6a 100644 --- a/lib/grade/grade_object.php +++ b/lib/grade/grade_object.php @@ -1,28 +1,29 @@ . +/** + * Definitions of grade object class + * + * @package core + * @subpackage grade + * @copyright 2006 Nicolas Connault + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +defined('MOODLE_INTERNAL') || die(); /** * An abstract object that holds methods and attributes common to all grade_* objects defined here. * @abstract diff --git a/lib/grade/grade_outcome.php b/lib/grade/grade_outcome.php index 37cec7fe92d..a165a2b7825 100644 --- a/lib/grade/grade_outcome.php +++ b/lib/grade/grade_outcome.php @@ -1,27 +1,29 @@ . +/** + * Definitions of grade outcome class + * + * @package core + * @subpackage grade + * @copyright 2006 Nicolas Connault + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined('MOODLE_INTERNAL') || die(); require_once('grade_object.php'); diff --git a/lib/grade/grade_scale.php b/lib/grade/grade_scale.php index ed524e1ea81..5a43f596c43 100644 --- a/lib/grade/grade_scale.php +++ b/lib/grade/grade_scale.php @@ -1,27 +1,29 @@ . +/** + * Definitions of grade scale class + * + * @package core + * @subpackage grade + * @copyright 2006 Nicolas Connault + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined('MOODLE_INTERNAL') || die(); require_once('grade_object.php');