См. определение в файле Command.php строка 12
◆ __construct()
◆ cleanCache()
static cleanCache |
( |
int | $id | ) |
|
|
static |
◆ commandRestLang()
commandRestLang |
( |
array | $result | ) |
|
|
protected |
◆ getBotId()
◆ getCacheDir()
◆ getCacheKey()
◆ getCommandList()
◆ getCommandListFromDb()
getCommandListFromDb |
( |
int | $id | ) |
|
|
protected |
◆ getDeleteDir()
static getDeleteDir |
( |
int | $id | ) |
|
|
staticprotected |
◆ getRestEntityName()
static getRestEntityName |
( |
| ) |
|
|
static |
Returns the name of the entity that will be used in the rest response
- Возвращает
- string
Замещает RestConvertible.
См. определение в файле Command.php строка 113
◆ getSavedCache()
◆ mergeWithDefaultCommands()
mergeWithDefaultCommands |
( |
| $commandList | ) |
|
|
protected |
◆ prepareData()
prepareData |
( |
array | $commandList | ) |
|
|
protected |
◆ saveInCache()
saveInCache |
( |
Cache | $cache, |
|
|
array | $commandList ) |
|
protected |
◆ setModuleParams()
setModuleParams |
( |
array | $command | ) |
|
|
protected |
◆ setModuleRestParams()
setModuleRestParams |
( |
array | $command | ) |
|
|
protected |
◆ sortCommandData()
sortCommandData |
( |
array | $result | ) |
|
|
protected |
◆ toRestFormat()
toRestFormat |
( |
array | $option = [] | ) |
|
Returns an array in JSON like format to return the entity as a rest response.
- Аргументы
-
- Возвращает
- array
Замещает RestConvertible.
См. определение в файле Command.php строка 118
◆ $botId
◆ $lang
string $lang = LANGUAGE_ID |
|
protected |
◆ $loadRestLang
◆ CACHE_KEY
const CACHE_KEY = 'cache_command_bot_' |
|
protected |
◆ CACHE_PATH
const CACHE_PATH = '/bx/im/command/' |
|
protected |
◆ CACHE_TTL
const CACHE_TTL = 31536000 |
|
protected |
◆ REST_NAME
const REST_NAME = 'commandList' |
|
protected |