• Модуль: imconnector
  • Путь к файлу: ~/bitrix/modules/imconnector/lib/provider/network/input.php
  • Класс: BitrixImConnectorProviderNetworkInput
  • Вызов: Input::receivingSessionVote
protected function receivingSessionVote(): Result
{
	$result = clone $this->result;

	if ($result->isSuccess())
	{
		$resultData = [];
		foreach ($this->data as $cell => $params)
		{
			$resultProcessingSessionVote = $this->processingSessionVote($params);

			$resultData[$cell] = $resultProcessingSessionVote->getResult();
			if ($resultProcessingSessionVote->isSuccess())
			{
				$resultData[$cell]['SUCCESS'] = true;
			}
			else
			{
				$resultData[$cell]['SUCCESS'] = false;
				$resultData[$cell]['ERRORS'] = $resultProcessingSessionVote->getErrorMessages();
			}
		}
		$result->setResult($resultData);
	}

	return $result;
}