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

This commit is contained in:
Ankit Agarwal
2017-02-14 11:40:52 +05:30
parent a04076a1f2
commit 2d47619503
+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;