Bind::start

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Bind
  4. start
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/replica/bind.php
  • Класс: BitrixTasksReplicaBind
  • Вызов: Bind::start
public function start()
{
	self::$taskHandler = new TaskHandler();
	BitrixReplicaClientHandlersManager::register(self::$taskHandler);
	BitrixReplicaClientHandlersManager::register(new TaskMemberHandler);
	BitrixReplicaClientHandlersManager::register(new TaskTagHandler);
	BitrixReplicaClientHandlersManager::register(new TaskLogHandler);
	BitrixReplicaClientHandlersManager::register(new TaskElapsedTimeHandler);
	BitrixReplicaClientHandlersManager::register(new TaskViewedHandler);
	BitrixReplicaClientHandlersManager::register(new TaskReminderHandler);
	BitrixReplicaClientHandlersManager::register(new TaskChecklistItemHandler);
	BitrixReplicaClientHandlersManager::register(new TaskRatingVoteHandler);

	$eventManager = BitrixMainEventManager::getInstance();
	$eventManager->addEventHandler("tasks", "OnTaskAdd", array(self::$taskHandler, "onTaskAdd"));
	$eventManager->addEventHandler("tasks", "OnBeforeTaskUpdate", array(self::$taskHandler, "onBeforeTaskUpdate"));
	$eventManager->addEventHandler("tasks", "OnTaskUpdate", array(self::$taskHandler, "onTaskUpdate"));
	$eventManager->addEventHandler("tasks", "OnTaskDelete", array(self::$taskHandler, "onTaskDelete"));
	$eventManager->addEventHandler("tasks", "OnBeforeTaskZombieDelete", array(self::$taskHandler, "onBeforeTaskZombieDelete"));
	$eventManager->addEventHandler("tasks", "OnTaskZombieDelete", array(self::$taskHandler, "onTaskZombieDelete"));
}

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