• Модуль: imconnector
  • Путь к файлу: ~/bitrix/modules/imconnector/lib/status.php
  • Класс: BitrixImConnectorStatus
  • Вызов: Status::fireUpdateEvent
public function fireUpdateEvent(): void
{
	if ($this->flagUpdated === true)
	{
		$fields = [
			'ACTIVE' => $this->active ? 'Y' : 'N',
			'CONNECTION' => $this->connection ? 'Y' : 'N',
			'REGISTER' => $this->register ? 'Y' : 'N',
			'ERROR' => $this->error ? 'Y' : 'N',
		];

		if ($this->data !== null)
		{
			$fields['DATA'] = $this->data;
		}

		$dataEvent = [
			'connector' => $this->connector,
			'line' => $this->line,
			'fields' => $fields
		];
		$event = new Event(Library::MODULE_ID, Library::EVENT_STATUS_UPDATE, $dataEvent);
		$event->send();

		$this->flagUpdated = false;
	}
}