mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-50729 events: Add user constants to events base class
This commit is contained in:
parent
7a3b115d37
commit
0edba58d50
@ -85,6 +85,16 @@ abstract class base implements \IteratorAggregate {
|
||||
*/
|
||||
const NOT_FOUND = -31338;
|
||||
|
||||
/**
|
||||
* User id to use when the user is not logged in.
|
||||
*/
|
||||
const USER_NOTLOGGEDIN = 0;
|
||||
|
||||
/**
|
||||
* User id to use when actor is not an actual user but system, cli or cron.
|
||||
*/
|
||||
const USER_OTHER = -1;
|
||||
|
||||
/** @var array event data */
|
||||
protected $data;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user