UserLiveStatusEvent
extends Event
in package
Base event class for the event dispatcher service
Typically this class isn't instantiated directly but sub classed for specific event types
Tags
Table of Contents
- STATUS_AWAY = 'away'
- STATUS_OFFLINE = 'offline'
- STATUS_ONLINE = 'online'
- $status : string
- $timestamp : int
- $user : IUser
- __construct() : mixed
- Compatibility constructor
- getStatus() : string
- getTimestamp() : int
- getUser() : IUser
Constants
STATUS_AWAY
public
string
STATUS_AWAY
= 'away'
Tags
STATUS_OFFLINE
public
string
STATUS_OFFLINE
= 'offline'
Tags
STATUS_ONLINE
public
string
STATUS_ONLINE
= 'online'
Tags
Properties
$status
private
string
$status
$timestamp
private
int
$timestamp
$user
private
IUser
$user
Methods
__construct()
Compatibility constructor
public
__construct(IUser $user, string $status, int $timestamp) : mixed
In Nextcloud 17.0.0 this event class used a now deprecated/removed Symfony base class that had a constructor (with default arguments). To lower the risk of a breaking change (PHP won't allow parent constructor calls if there is none), this empty constructor's only purpose is to hopefully not break existing sub- classes of this class.
Parameters
- $user : IUser
- $status : string
- $timestamp : int
Tags
Return values
mixed —getStatus()
public
getStatus() : string
Tags
Return values
string —getTimestamp()
public
getTimestamp() : int
Tags
Return values
int —getUser()
public
getUser() : IUser