Loader
Loader is responsible for fetching counters and flags from db and keeping them cached
Table of Contents
Methods
- __construct() : mixed
- fetchCounters() : void
- getClearedDate() : int
- getRawCounters() : array<string|int, mixed>
- getTotalCounters() : int
- isCounted() : bool
- isCounterFlag() : bool
- resetCache() : void
Methods
__construct()
public
__construct(int $userId) : mixed
Parameters
- $userId : int
fetchCounters()
public
fetchCounters() : void
getClearedDate()
public
getClearedDate() : int
Return values
intgetRawCounters()
public
getRawCounters() : array<string|int, mixed>
Return values
array<string|int, mixed>getTotalCounters()
public
getTotalCounters() : int
Return values
intisCounted()
public
isCounted() : bool
Return values
boolisCounterFlag()
public
isCounterFlag(string $type) : bool
Parameters
- $type : string
Return values
boolresetCache()
public
resetCache() : void