Bitrix API

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

clearCache()

public clearCache() : self
Return values
self

getPresetCache()

public static getPresetCache([int|null $presetId = null ]) : self
Parameters
$presetId : int|null = null
Return values
self

getUserCache()

public static getUserCache([int|null $userId = null ]) : self
Parameters
$userId : int|null = null
Return values
self

getValue()

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
self

setValue()

public setValue(array<string|int, mixed> $value) : self
Parameters
$value : array<string|int, mixed>
Return values
self

        
On this page

Search results