CacheManager
Table of Contents
Constants
- GENERAL_PRESET = 'generalPreset'
- NOTIFY_PRESET = 'notifyPreset'
Methods
- clearAll() : self
- clearCache() : self
- getPresetCache() : self
- getUserCache() : self
- getValue() : array<string|int, mixed>
- setEntityId() : self
- setValue() : self
Constants
GENERAL_PRESET
public
mixed
GENERAL_PRESET
= 'generalPreset'
NOTIFY_PRESET
public
mixed
NOTIFY_PRESET
= 'notifyPreset'
Methods
clearAll()
public
clearAll() : self
Return values
selfclearCache()
public
clearCache() : self
Return values
selfgetPresetCache()
public
static getPresetCache([int|null $presetId = null ]) : self
Parameters
- $presetId : int|null = null
Return values
selfgetUserCache()
public
static getUserCache([int|null $userId = null ]) : self
Parameters
- $userId : int|null = null
Return values
selfgetValue()
public
getValue() : array<string|int, mixed>
Return values
array<string|int, mixed> —if UserCache is selected, it will return an array in the form: array{notifyPreset: int, generalPreset: int}
if PresetCache is selected, it will return an array in the form: array{id:int, name: ?string, sort: int, userId: ?int, general: array, notify: array}
setEntityId()
public
setEntityId(int $entityId) : self
Parameters
- $entityId : int
Return values
selfsetValue()
public
setValue(array<string|int, mixed> $value) : self
Parameters
- $value : array<string|int, mixed>