UserOptionController::onAfterOptionChanged

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. UserOptionController
  4. onAfterOptionChanged
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/project/useroption/useroptioncontroller.php
  • Класс: BitrixTasksInternalsProjectUserOptionUserOptionController
  • Вызов: UserOptionController::onAfterOptionChanged
private function onAfterOptionChanged(int $option, bool $added): void
{
	if (!$this->isOption($option))
	{
		return;
	}

	PushService::addEvent(
		$this->userId,
		[
			'module_id' => 'tasks',
			'command' => PushCommand::PROJECT_USER_OPTION_UPDATED,
			'params' => [
				'PROJECT_ID' => $this->projectId,
				'USER_ID' => $this->userId,
				'OPTION' => $option,
				'ADDED' => $added,
			],
		]
	);
}

Добавить комментарий