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

	if ($result->isSuccess())
	{
		$result = Connector::initConnectorHandler($this->connector)->processingInputNewPost($message, $this->line);
	}

	if ($result->isSuccess())
	{
		$resultEvent = $this->sendEventAddPost($result->getResult());
		if (!$resultEvent->isSuccess())
		{
			$result->addErrors($resultEvent->getErrors());
		}

		$result->setResult(array_merge($message, $result->getResult()));
	}

	return $result;
}