Метод fireRestEventsPerItem

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 1256–1285
~/bitrix/modulesim/lib/bot.php

Исходный код

PHP
public static

Сигнатура метода

public static function fireRestEventsPerItem(string $v1EventName, string $v2EventName, array $items, array $additionalParams): void

Возвращает: void

Описание

Fires V1 once (batch) and V2 once per item for single-object webhook format. Used for events where $arParams[0] contains a list of bots or commands. V1 receives the full list (backward compatible). V2 fires separately for each item so the webhook payload contains a single `bot` object instead of an array.

Параметры

4
Имя Тип По умолчанию Флаги
$v1EventName string -
-
$v2EventName string -
-
$items array -
-
$additionalParams array -
-