Метод collectVotes
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
44–55
~/bitrix/modulesim/lib/V2/Message/Vote/VoteService.php
Исходный код
Сигнатура метода
public function collectVotes(array $messageIds, int $userId): array
Возвращает:
array
Описание
Collects votes for the given message ids on behalf of $userId. Fires OnMessageVoteCollect event; subscribers return SUCCESS results with [messageId => ('like'|'dislike')[]] maps.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$messageIds
|
array
|
-
|
-
|
$userId
|
int
|
-
|
-
|