IsOnlineService
in package
Allow to know which users are currently online
Tags
Table of Contents
Constants
- CACHE_IS_ONLINE_PREFIX = 'is_online_user_id_'
Properties
Methods
- __construct() : mixed
- getStatus() : bool
- isEnabled() : bool
- updateStatus() : void
- getCacheKey() : string
Constants
CACHE_IS_ONLINE_PREFIX
protected
mixed
CACHE_IS_ONLINE_PREFIX
= 'is_online_user_id_'
Properties
$user
public
User|null
$user
Methods
__construct()
public
__construct(User|null $user) : mixed
Parameters
- $user : User|null
getStatus()
public
getStatus() : bool
Return values
boolisEnabled()
public
isEnabled() : bool
Return values
boolupdateStatus()
public
updateStatus() : void
getCacheKey()
protected
getCacheKey() : string