From 0edba58d5012da497c2caa9e96038fbbe8c69c5e Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Thu, 26 Jan 2017 14:23:38 +0530 Subject: [PATCH] MDL-50729 events: Add user constants to events base class --- lib/classes/event/base.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/classes/event/base.php b/lib/classes/event/base.php index 8036019d0d7..27f74c0a20d 100644 --- a/lib/classes/event/base.php +++ b/lib/classes/event/base.php @@ -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;