1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
collablistener.php
См. документацию.
1<?php
2
4
9
11{
12 public function notify(array $groupsToNotify): void
13 {
14 if (!$this->isAvailable())
15 {
16 return;
17 }
18
19 foreach ($groupsToNotify as $groupId => $userIds)
20 {
21 $group = CollabRegistry::getInstance()->get($groupId);
22
23 if ($group === null)
24 {
25 continue;
26 }
27
28 $this->notifyDispatcher($groupId, $userIds);
29 }
30 }
31
32 private function notifyDispatcher(int $groupId, array $userIds): void
33 {
34 $counters = [];
35 foreach ($userIds as $userId)
36 {
39 }
40
41 EventDispatcher::onCountersRecount($groupId, $counters, 'calendar');
42 }
43
44 private function isAvailable(): bool
45 {
46 return Loader::includeModule('socialnetwork');
47 }
48}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
static getInstance()
Определения application.php:98
Определения loader.php:13
static onCountersRecount(int $collabId, array $counters, string $entityType)
Определения EventDispatcher.php:41
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$counter
Определения options.php:5
$counters
Определения options.php:100