Util::initPlannerPullWatches

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. Util
  4. initPlannerPullWatches
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/util.php
  • Класс: BitrixCalendarUtil
  • Вызов: Util::initPlannerPullWatches
static function initPlannerPullWatches(int $currentUserId, array $userIdList = []): void
{
	if (Loader::includeModule("pull"))
	{
		foreach($userIdList as $userId)
		{
			if ((int)$userId !== $currentUserId)
			{
				CPullWatch::Add($currentUserId, 'calendar-planner-'.$userId);
			}
		}
	}
}

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