• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Entity/Command/Command.php
  • Класс: BitrixImV2EntityCommandCommand
  • Вызов: Command::getCommandList
public function getCommandList($id): array
{
	$cache = $this->getSavedCache($id);
	$cachedCommandList = $cache->getVars();

	if ($cachedCommandList !== false)
	{
		return $cachedCommandList;
	}

	$commandList = $this->getCommandListFromDb($id);
	if (empty($commandList))
	{
		return [];
	}

	$this->saveInCache($cache, $commandList);

	return $commandList;
}