MDL-40055 mod_assign: Setting level according to new event constants
authorFrederic Massart <fred@moodle.com>
Wed, 21 Aug 2013 06:28:38 +0000 (14:28 +0800)
committerFrederic Massart <fred@moodle.com>
Mon, 26 Aug 2013 06:17:18 +0000 (14:17 +0800)
12 files changed:
mod/assign/classes/event/all_submissions_downloaded.php
mod/assign/classes/event/extension_granted.php
mod/assign/classes/event/identities_revealed.php
mod/assign/classes/event/marker_updated.php
mod/assign/classes/event/statement_accepted.php
mod/assign/classes/event/submission_duplicated.php
mod/assign/classes/event/submission_graded.php
mod/assign/classes/event/submission_locked.php
mod/assign/classes/event/submission_status_updated.php
mod/assign/classes/event/submission_unlocked.php
mod/assign/classes/event/submission_updated.php
mod/assign/classes/event/workflow_state_updated.php

index 476519b..107f2d6 100644 (file)
@@ -95,7 +95,7 @@ class all_submissions_downloaded extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'r';
-        $this->data['level'] = 50;          // TODO MDL-37658.
+        $this->data['level'] = self::LEVEL_TEACHING;
         $this->data['objecttable'] = 'assign';
     }
 
index 9ccf560..9c17fb0 100644 (file)
@@ -85,7 +85,7 @@ class extension_granted extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'u';
-        $this->data['level'] = 50;          // TODO MDL-37658.
+        $this->data['level'] = self::LEVEL_TEACHING;
         $this->data['objecttable'] = 'assign';
     }
 
index 02f6a61..84f5d09 100644 (file)
@@ -85,7 +85,7 @@ class identities_revealed extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'u';
-        $this->data['level'] = 50;          // TODO MDL-37658.
+        $this->data['level'] = self::LEVEL_TEACHING;
         $this->data['objecttable'] = 'assign';
     }
 
index 09b8f62..4501b4e 100644 (file)
@@ -85,7 +85,7 @@ class marker_updated extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'u';
-        $this->data['level'] = 50;          // TODO MDL-37658.
+        $this->data['level'] = self::LEVEL_TEACHING;
         $this->data['objecttable'] = 'assign';
     }
 
index 9724178..b0e11eb 100644 (file)
@@ -85,7 +85,7 @@ class statement_accepted extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'r';
-        $this->data['level'] = 50;          // TODO MDL-41040.
+        $this->data['level'] = self::LEVEL_PARTICIPATING;
         $this->data['objecttable'] = 'assign_submission';
     }
 
index ac07991..4b7d90f 100644 (file)
@@ -85,7 +85,7 @@ class submission_duplicated extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'c';
-        $this->data['level'] = 50;          // TODO MDL-37658.
+        $this->data['level'] = self::LEVEL_PARTICIPATING;
         $this->data['objecttable'] = 'assign_submission';
     }
 
index 03abf9c..0387dd4 100644 (file)
@@ -85,7 +85,7 @@ class submission_graded extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'u';
-        $this->data['level'] = 50;          // TODO MDL-41040.
+        $this->data['level'] = self::LEVEL_TEACHING;
         $this->data['objecttable'] = 'assign_grades';
     }
 
index f95715a..9d3b376 100644 (file)
@@ -85,7 +85,7 @@ class submission_locked extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'u';
-        $this->data['level'] = 50;          // TODO MDL-37658.
+        $this->data['level'] = self::LEVEL_TEACHING;
         $this->data['objecttable'] = 'assign';
     }
 
index df3e45b..5d92393 100644 (file)
@@ -85,7 +85,7 @@ class submission_status_updated extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'u';
-        $this->data['level'] = 50;          // TODO MDL-37658.
+        $this->data['level'] = self::LEVEL_TEACHING;
         $this->data['objecttable'] = 'assign_submission';
     }
 
index 429ff46..8c705f7 100644 (file)
@@ -85,7 +85,7 @@ class submission_unlocked extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'u';
-        $this->data['level'] = 50;          // TODO MDL-37658.
+        $this->data['level'] = self::LEVEL_TEACHING;
         $this->data['objecttable'] = 'assign';
     }
 
index 047a980..00b5653 100644 (file)
@@ -85,7 +85,7 @@ class submission_updated extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'u';
-        $this->data['level'] = 50;          // TODO MDL-41040.
+        $this->data['level'] = self::LEVEL_PARTICIPATING;
         $this->data['objecttable'] = 'assign_submission';
     }
 
index 85a60c7..486b0f6 100644 (file)
@@ -85,7 +85,7 @@ class workflow_state_updated extends \core\event\base {
      */
     protected function init() {
         $this->data['crud'] = 'u';
-        $this->data['level'] = 50;          // TODO MDL-37658.
+        $this->data['level'] = self::LEVEL_TEACHING;
         $this->data['objecttable'] = 'assign';
     }