Commit 32f906b6 authored by Petr Škoda's avatar Petr Škoda Committed by Petr Skoda
Browse files

MDL-43661 use new edulevel in all existing events

parent 3345e24f
......@@ -49,7 +49,7 @@ abstract class assessable_submitted extends \core\event\base {
*/
protected function init() {
$this->data['crud'] = 'u';
$this->data['level'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
......
......@@ -56,7 +56,7 @@ abstract class assessable_uploaded extends \core\event\base {
*/
protected function init() {
$this->data['crud'] = 'c';
$this->data['level'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
......
......@@ -51,7 +51,7 @@ class blog_association_created extends \core\event\base {
$this->context = \context_system::instance();
$this->data['objecttable'] = 'blog_association';
$this->data['crud'] = 'c';
$this->data['level'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
......
......@@ -50,7 +50,7 @@ class blog_entries_viewed extends base {
protected function init() {
$this->context = \context_system::instance();
$this->data['crud'] = 'r';
$this->data['level'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
......
......@@ -47,7 +47,7 @@ class blog_entry_created extends \core\event\base {
$this->context = \context_system::instance();
$this->data['objecttable'] = 'post';
$this->data['crud'] = 'c';
$this->data['level'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
......
......@@ -46,7 +46,7 @@ class blog_entry_deleted extends \core\event\base {
$this->context = \context_system::instance();
$this->data['objecttable'] = 'post';
$this->data['crud'] = 'd';
$this->data['level'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
......
......@@ -45,7 +45,7 @@ class blog_entry_updated extends base {
$this->context = \context_system::instance();
$this->data['objecttable'] = 'post';
$this->data['crud'] = 'u';
$this->data['level'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
......
......@@ -41,7 +41,7 @@ class cohort_created extends base {
*/
protected function init() {
$this->data['crud'] = 'c';
$this->data['level'] = self::LEVEL_OTHER;
$this->data['edulevel'] = self::LEVEL_OTHER;
$this->data['objecttable'] = 'cohort';
}
......
......@@ -41,7 +41,7 @@ class cohort_deleted extends base {
*/
protected function init() {
$this->data['crud'] = 'd';
$this->data['level'] = self::LEVEL_OTHER;
$this->data['edulevel'] = self::LEVEL_OTHER;
$this->data['objecttable'] = 'cohort';
}
......
......@@ -41,7 +41,7 @@ class cohort_member_added extends base {
*/
protected function init() {
$this->data['crud'] = 'c';
$this->data['level'] = self::LEVEL_OTHER;
$this->data['edulevel'] = self::LEVEL_OTHER;
$this->data['objecttable'] = 'cohort';
}
......
......@@ -42,7 +42,7 @@ class cohort_member_removed extends base {
*/
protected function init() {
$this->data['crud'] = 'd';
$this->data['level'] = self::LEVEL_OTHER;
$this->data['edulevel'] = self::LEVEL_OTHER;
$this->data['objecttable'] = 'cohort';
}
......
......@@ -41,7 +41,7 @@ class cohort_updated extends base {
*/
protected function init() {
$this->data['crud'] = 'u';
$this->data['level'] = self::LEVEL_OTHER;
$this->data['edulevel'] = self::LEVEL_OTHER;
$this->data['objecttable'] = 'cohort';
}
......
......@@ -50,7 +50,7 @@ abstract class comment_created extends \core\event\base {
*/
protected function init() {
$this->data['crud'] = 'c';
$this->data['level'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
$this->data['objecttable'] = 'comments';
}
......
......@@ -50,7 +50,7 @@ abstract class comment_deleted extends \core\event\base {
*/
protected function init() {
$this->data['crud'] = 'd';
$this->data['level'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
$this->data['objecttable'] = 'comments';
}
......
......@@ -44,7 +44,7 @@ abstract class comments_viewed extends \core\event\base {
*/
protected function init() {
$this->data['crud'] = 'r';
$this->data['level'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
......
......@@ -61,7 +61,7 @@ abstract class content_viewed extends base {
global $PAGE;
$this->data['crud'] = 'r';
$this->data['level'] = self::LEVEL_OTHER;
$this->data['edulevel'] = self::LEVEL_OTHER;
$this->context = $PAGE->context;
}
......
......@@ -33,7 +33,7 @@ class course_category_created extends base {
protected function init() {
$this->data['objecttable'] = 'course_categories';
$this->data['crud'] = 'c';
$this->data['level'] = self::LEVEL_OTHER;
$this->data['edulevel'] = self::LEVEL_OTHER;
}
/**
......
......@@ -44,7 +44,7 @@ class course_category_deleted extends base {
protected function init() {
$this->data['objecttable'] = 'course_categories';
$this->data['crud'] = 'd';
$this->data['level'] = self::LEVEL_OTHER;
$this->data['edulevel'] = self::LEVEL_OTHER;
}
/**
......
......@@ -36,7 +36,7 @@ class course_category_updated extends base {
protected function init() {
$this->data['objecttable'] = 'course_categories';
$this->data['crud'] = 'u';
$this->data['level'] = self::LEVEL_OTHER;
$this->data['edulevel'] = self::LEVEL_OTHER;
}
/**
......
......@@ -33,7 +33,7 @@ class course_completed extends base {
protected function init() {
$this->data['objecttable'] = 'course_completions';
$this->data['crud'] = 'u';
$this->data['level'] = self::LEVEL_PARTICIPATING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
......
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