mirror of
https://github.com/PawelSuwinski/moodle-auth_emailotp.git
synced 2026-05-16 21:41:27 +02:00
event classes refactoring
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user