From 725dfe6a549556545eae1aababc7aca0aede4f2d Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Mon, 26 Aug 2013 14:21:34 +0800 Subject: [PATCH] MDL-40055 mod_assign: Wrong namespace when throwing exception --- mod/assign/classes/event/extension_granted.php | 4 ++-- mod/assign/classes/event/marker_updated.php | 6 +++--- mod/assign/classes/event/submission_graded.php | 4 ++-- mod/assign/classes/event/submission_locked.php | 4 ++-- mod/assign/classes/event/submission_status_updated.php | 4 ++-- mod/assign/classes/event/submission_unlocked.php | 4 ++-- mod/assign/classes/event/workflow_state_updated.php | 6 +++--- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/mod/assign/classes/event/extension_granted.php b/mod/assign/classes/event/extension_granted.php index 9c17fb08634..6bbabdec7d5 100644 --- a/mod/assign/classes/event/extension_granted.php +++ b/mod/assign/classes/event/extension_granted.php @@ -102,12 +102,12 @@ class extension_granted extends \core\event\base { /** * Custom validation. * - * @throws coding_exception + * @throws \coding_exception * @return void */ protected function validate_data() { if (!isset($this->relateduserid)) { - throw new coding_exception('relateduserid is a mandatory property.'); + throw new \coding_exception('relateduserid is a mandatory property.'); } } } diff --git a/mod/assign/classes/event/marker_updated.php b/mod/assign/classes/event/marker_updated.php index 4501b4ef44b..b771144a3df 100644 --- a/mod/assign/classes/event/marker_updated.php +++ b/mod/assign/classes/event/marker_updated.php @@ -102,14 +102,14 @@ class marker_updated extends \core\event\base { /** * Custom validation. * - * @throws coding_exception + * @throws \coding_exception * @return void */ protected function validate_data() { if (!isset($this->other['markerid'])) { - throw new coding_exception('markerid must be set in $other.'); + throw new \coding_exception('markerid must be set in $other.'); } else if (!isset($this->relateduserid)) { - throw new coding_exception('relateduserid must be set.'); + throw new \coding_exception('relateduserid must be set.'); } } } diff --git a/mod/assign/classes/event/submission_graded.php b/mod/assign/classes/event/submission_graded.php index 0387dd43580..d6d968db77b 100644 --- a/mod/assign/classes/event/submission_graded.php +++ b/mod/assign/classes/event/submission_graded.php @@ -102,12 +102,12 @@ class submission_graded extends \core\event\base { /** * Custom validation. * - * @throws coding_exception + * @throws \coding_exception * @return void */ protected function validate_data() { if (!isset($this->relateduserid)) { - throw new coding_exception('relateduserid is a mandatory property.'); + throw new \coding_exception('relateduserid is a mandatory property.'); } } } diff --git a/mod/assign/classes/event/submission_locked.php b/mod/assign/classes/event/submission_locked.php index 9d3b376f1be..d1c07cfb598 100644 --- a/mod/assign/classes/event/submission_locked.php +++ b/mod/assign/classes/event/submission_locked.php @@ -102,12 +102,12 @@ class submission_locked extends \core\event\base { /** * Custom validation. * - * @throws coding_exception + * @throws \coding_exception * @return void */ protected function validate_data() { if (!isset($this->relateduserid)) { - throw new coding_exception('relateduserid is a mandatory property.'); + throw new \coding_exception('relateduserid is a mandatory property.'); } } } diff --git a/mod/assign/classes/event/submission_status_updated.php b/mod/assign/classes/event/submission_status_updated.php index 5d923931ebb..48fe0ce8bd3 100644 --- a/mod/assign/classes/event/submission_status_updated.php +++ b/mod/assign/classes/event/submission_status_updated.php @@ -102,12 +102,12 @@ class submission_status_updated extends \core\event\base { /** * Custom validation. * - * @throws coding_exception + * @throws \coding_exception * @return void */ protected function validate_data() { if (!isset($this->other['newstatus'])) { - throw new coding_exception('newstatus must be set in $other.'); + throw new \coding_exception('newstatus must be set in $other.'); } } } diff --git a/mod/assign/classes/event/submission_unlocked.php b/mod/assign/classes/event/submission_unlocked.php index 8c705f774f0..cc93f6fd833 100644 --- a/mod/assign/classes/event/submission_unlocked.php +++ b/mod/assign/classes/event/submission_unlocked.php @@ -102,12 +102,12 @@ class submission_unlocked extends \core\event\base { /** * Custom validation. * - * @throws coding_exception + * @throws \coding_exception * @return void */ protected function validate_data() { if (!isset($this->relateduserid)) { - throw new coding_exception('relateduserid is a mandatory property.'); + throw new \coding_exception('relateduserid is a mandatory property.'); } } } diff --git a/mod/assign/classes/event/workflow_state_updated.php b/mod/assign/classes/event/workflow_state_updated.php index 486b0f65ad6..3f885cb83d8 100644 --- a/mod/assign/classes/event/workflow_state_updated.php +++ b/mod/assign/classes/event/workflow_state_updated.php @@ -102,14 +102,14 @@ class workflow_state_updated extends \core\event\base { /** * Custom validation. * - * @throws coding_exception + * @throws \coding_exception * @return void */ protected function validate_data() { if (!isset($this->other['newstate'])) { - throw new coding_exception('newstate must be set in $other.'); + throw new \coding_exception('newstate must be set in $other.'); } else if (!isset($this->relateduserid)) { - throw new coding_exception('relateduserid must be set.'); + throw new \coding_exception('relateduserid must be set.'); } } }