mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Merge branch 'MDL-47864_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
712b72c0f0
@ -44,7 +44,7 @@ class rule_created extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'tool_monitor_rules';
|
||||
$this->data['crud'] = 'c';
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
$this->data['edulevel'] = self::LEVEL_OTHER;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,7 +44,7 @@ class rule_deleted extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'tool_monitor_rules';
|
||||
$this->data['crud'] = 'd';
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
$this->data['edulevel'] = self::LEVEL_OTHER;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,7 +44,7 @@ class rule_updated extends \core\event\base {
|
||||
protected function init() {
|
||||
$this->data['objecttable'] = 'tool_monitor_rules';
|
||||
$this->data['crud'] = 'u';
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
$this->data['edulevel'] = self::LEVEL_OTHER;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -36,6 +36,15 @@ defined('MOODLE_INTERNAL') || die();
|
||||
*/
|
||||
class grade_report_viewed extends \core\event\grade_report_viewed {
|
||||
|
||||
/**
|
||||
* Initialise the event data.
|
||||
* @return void
|
||||
*/
|
||||
protected function init() {
|
||||
parent::init();
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns localised general event name.
|
||||
*
|
||||
|
@ -36,6 +36,15 @@ defined('MOODLE_INTERNAL') || die();
|
||||
*/
|
||||
class grade_report_viewed extends \core\event\grade_report_viewed {
|
||||
|
||||
/**
|
||||
* Initialise the event data.
|
||||
* @return void
|
||||
*/
|
||||
protected function init() {
|
||||
parent::init();
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns localised general event name.
|
||||
*
|
||||
|
@ -48,7 +48,7 @@ abstract class grade_report_viewed extends base {
|
||||
$this->reporttype = $shorttype[1];
|
||||
|
||||
$this->data['crud'] = 'r';
|
||||
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
|
||||
$this->data['edulevel'] = self::LEVEL_TEACHING;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user