• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Entity/Command/Command.php
  • Класс: BitrixImV2EntityCommandCommand
  • Вызов: Command::getCommandListFromDb
protected function getCommandListFromDb(int $id): ?array
{
	$result = [];

	$query =CommandTable::query()
		->setSelect(['*'])
		->where('BOT_ID', $id)
		->exec()
	;

	while ($row = $query->fetch())
	{
		$result[$row['ID']] = $row;
	}


	return $result;
}