event classes refactoring

This commit is contained in:
Paweł Suwiński
2020-11-18 14:34:38 +01:00
parent 2db88bb417
commit fc56948099
2 changed files with 3 additions and 3 deletions

View File

@@ -35,13 +35,13 @@ defined('MOODLE_INTERNAL') || die();
*/
class otp_generated extends \core\event\base {
protected static $crud = 'c';
protected const CRUD = 'c';
/**
* {@inheritdoc}
*/
protected function init() {
$this->data['crud'] = static::$crud;
$this->data['crud'] = static::CRUD;
$this->data['edulevel'] = self::LEVEL_OTHER;
$this->context = \context_system::instance();
}

View File

@@ -34,5 +34,5 @@ defined('MOODLE_INTERNAL') || die();
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class otp_revoked extends otp_generated {
protected static $crud = 'd';
protected const CRUD = 'd';
}