1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
openeventdropcounter.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Internals\Counter\Processor\Handler;
4
5use Bitrix\Calendar\Internals\Counter\CounterService;
6use Bitrix\Calendar\Internals\Counter\CounterTable;
7use Bitrix\Calendar\Internals\Counter\Event\EventDictionary;
8
10{
11 public function __invoke(array $userIds, int $eventId, int $categoryId): void
12 {
13 if (empty($userIds) || !$eventId)
14 {
15 return;
16 }
17
18 CounterTable::deleteByFilter([
19 'EVENT_ID' => $eventId,
20 'USER_ID' => $userIds,
21 ]);
22 // this will run the Counter\Processor\Total which will update users' counters
23 CounterService::addEvent(EventDictionary::OPEN_EVENT_SCORER_UPDATED, [
24 'user_ids' => $userIds,
25 ]);
26
27 (new OpenEventPushScorer())($userIds, [$categoryId]);
28 }
29}
static addEvent(string $type, array $data)
Определения counterservice.php:40
__invoke(array $userIds, int $eventId, int $categoryId)
Определения openeventdropcounter.php:11
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804