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

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

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

	return $result;
}