MDL-50729 events: Add user constants to events base class

This commit is contained in:
Ankit Agarwal
2017-02-14 10:15:52 +05:30
parent 7a3b115d37
commit 0edba58d50
+10
View File
@@ -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;