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

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

 __construct ($botId)
 
 getCommandList ($id)
 
 toRestFormat (array $option=[])
 

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

static cleanCache (int $id)
 
static getRestEntityName ()
 

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

 getBotId ()
 
 getSavedCache (int $id)
 
 getCacheDir (int $id)
 
 getCacheKey ($id)
 
 getCommandListFromDb (int $id)
 
 saveInCache (Cache $cache, array $commandList)
 
 prepareData (array $commandList)
 
 setModuleParams (array $command)
 
 setModuleRestParams (array $command)
 
 commandRestLang (array $result)
 
 sortCommandData (array $result)
 
 mergeWithDefaultCommands ($commandList)
 

Защищенные статические члены

static getDeleteDir (int $id)
 

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

const CACHE_PATH = '/bx/im/command/'
 
const CACHE_TTL = 31536000
 
const CACHE_KEY = 'cache_command_bot_'
 
const REST_NAME = 'commandList'
 
bool $loadRestLang
 
int $botId
 
string $lang = LANGUAGE_ID
 

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

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

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

◆ __construct()

__construct ( $botId)

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

Методы

◆ cleanCache()

static cleanCache ( int $id)
static

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

◆ commandRestLang()

commandRestLang ( array $result)
protected

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

◆ getBotId()

getBotId ( )
protected

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

◆ getCacheDir()

getCacheDir ( int $id)
protected

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

◆ getCacheKey()

getCacheKey ( $id)
protected

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

◆ getCommandList()

getCommandList ( $id)

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

◆ getCommandListFromDb()

getCommandListFromDb ( int $id)
protected

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

◆ getDeleteDir()

static getDeleteDir ( int $id)
staticprotected

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

◆ getRestEntityName()

static getRestEntityName ( )
static

Returns the name of the entity that will be used in the rest response

Возвращает
string

Замещает RestConvertible.

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

◆ getSavedCache()

getSavedCache ( int $id)
protected

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

◆ mergeWithDefaultCommands()

mergeWithDefaultCommands ( $commandList)
protected

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

◆ prepareData()

prepareData ( array $commandList)
protected

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

◆ saveInCache()

saveInCache ( Cache $cache,
array $commandList )
protected

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

◆ setModuleParams()

setModuleParams ( array $command)
protected

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

◆ setModuleRestParams()

setModuleRestParams ( array $command)
protected

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

◆ sortCommandData()

sortCommandData ( array $result)
protected

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

◆ toRestFormat()

toRestFormat ( array $option = [])

Returns an array in JSON like format to return the entity as a rest response.

Аргументы
array$option
Возвращает
array

Замещает RestConvertible.

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

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

◆ $botId

int $botId
protected

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

◆ $lang

string $lang = LANGUAGE_ID
protected

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

◆ $loadRestLang

bool $loadRestLang
protected

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

◆ CACHE_KEY

const CACHE_KEY = 'cache_command_bot_'
protected

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

◆ CACHE_PATH

const CACHE_PATH = '/bx/im/command/'
protected

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

◆ CACHE_TTL

const CACHE_TTL = 31536000
protected

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

◆ REST_NAME

const REST_NAME = 'commandList'
protected

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