Commit 959a3284 authored by Frederic Massart's avatar Frederic Massart
Browse files

MDL-40055 mod_assign: Setting level according to new event constants

parent 5e8eb969
......@@ -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';
}
......
......@@ -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';
}
......
......@@ -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';
}
......
......@@ -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';
}
......
......@@ -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';
}
......
......@@ -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';
}
......
......@@ -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';
}
......
......@@ -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';
}
......
......@@ -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';
}
......
......@@ -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';
}
......
......@@ -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';
}
......
......@@ -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';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment