Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс AbstractSwitcher
+ Граф наследования:AbstractSwitcher:

Открытые члены

 getValue ()
 
 __construct (int $userId, ?int $spaceId, string $code)
 
 switch ()
 
 isEnabled ()
 
 getUserId ()
 
 getSpaceId ()
 
 getCode ()
 
 getMessage ()
 
- Открытые члены унаследованные от SwitcherInterface
 enable ()
 
 disable ()
 

Открытые статические члены

static getDefaultCode ()
 

Открытые атрибуты

const TYPE_ON = 'Y'
 
const TYPE_OFF = 'N'
 

Защищенные члены

 canSwitch ()
 
 isSpaceExists ()
 
 isMember ()
 

Защищенные данные

int $spaceId = null
 
int $userId
 
string $value
 
string $code = ''
 
bool $isInitialized = false
 

Подробное описание

См. определение в файле AbstractSwitcher.php строка 11

Конструктор(ы)

◆ __construct()

__construct ( int $userId,
?int $spaceId,
string $code )

См. определение в файле AbstractSwitcher.php строка 28

Методы

◆ canSwitch()

canSwitch ( )
protected

Переопределяется в SmartTracking и Pin.

См. определение в файле AbstractSwitcher.php строка 78

◆ getCode()

getCode ( )

Переопределяется в Follow.

См. определение в файле AbstractSwitcher.php строка 68

◆ getDefaultCode()

static getDefaultCode ( )
staticabstract

Переопределяется в SmartTracking, Follow и Pin.

◆ getMessage()

getMessage ( )

Переопределяется в Follow и Pin.

См. определение в файле AbstractSwitcher.php строка 73

◆ getSpaceId()

getSpaceId ( )

См. определение в файле AbstractSwitcher.php строка 63

◆ getUserId()

getUserId ( )

См. определение в файле AbstractSwitcher.php строка 58

◆ getValue()

getValue ( )
abstract

Переопределяется в SmartTracking, Follow и Pin.

◆ isEnabled()

isEnabled ( )

Замещает SwitcherInterface.

Переопределяется в SmartTracking.

См. определение в файле AbstractSwitcher.php строка 53

◆ isMember()

isMember ( )
protected

См. определение в файле AbstractSwitcher.php строка 100

◆ isSpaceExists()

isSpaceExists ( )
protected

См. определение в файле AbstractSwitcher.php строка 83

◆ switch()

switch ( )

Замещает SwitcherInterface.

См. определение в файле AbstractSwitcher.php строка 35

Данные класса

◆ $code

string $code = ''
protected

См. определение в файле AbstractSwitcher.php строка 21

◆ $isInitialized

bool $isInitialized = false
protected

См. определение в файле AbstractSwitcher.php строка 22

◆ $spaceId

int $spaceId = null
protected

См. определение в файле AbstractSwitcher.php строка 18

◆ $userId

int $userId
protected

См. определение в файле AbstractSwitcher.php строка 19

◆ $value

string $value
protected

См. определение в файле AbstractSwitcher.php строка 20

◆ TYPE_OFF

const TYPE_OFF = 'N'

См. определение в файле AbstractSwitcher.php строка 16

◆ TYPE_ON

const TYPE_ON = 'Y'

См. определение в файле AbstractSwitcher.php строка 15