Bitrix API

AbstractSwitcher implements SwitcherInterface uses CacheTrait

AbstractYes

Table of Contents

Interfaces

SwitcherInterface

Constants

TYPE_OFF  = 'N'
TYPE_ON  = 'Y'

Methods

__construct()  : mixed
get()  : SwitcherInterface
getCode()  : string
getDefaultCode()  : string
getMessage()  : string|null
getSpaceId()  : int|null
getUserId()  : int
getValue()  : string
invalidate()  : void
isEnabled()  : bool
switch()  : Result

Constants

Methods

__construct()

public __construct(int $userId, int|null $spaceId, string $code) : mixed
Parameters
$userId : int
$spaceId : int|null
$code : string

getDefaultCode()

public abstract static getDefaultCode() : string
Return values
string

getMessage()

public getMessage() : string|null
Return values
string|null

        
On this page

Search results