Метод findByLogicalKey
Сигнатура метода
public function findByLogicalKey(int $instanceId, ManagedAgentResourceType $type, string $resourceId): ?ManagedAgentResource
Возвращает:
?ManagedAgentResource
Описание
Reads the row by its logical key over ux_bp_ma_resource_identity. Registering an already registered resource is a safe operation: the caller looks the row up first and decides on its own whether the stored payload may be replaced.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$instanceId
|
int
|
—
|
—
|
$type
|
ManagedAgentResourceType
|
—
|
—
|
$resourceId
|
string
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Repository/AiAgent/ManagedAgentResourceRepositoryInterface.php
Расположение метода в файле
Строки
25–29