Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
filter.php
1<?php
2
4
8
9
10class Filter extends BaseFilter
11{
12 public function __construct()
13 {
14 parent::__construct();
15 }
16
17 public function isAvailable(): bool
18 {
19 return $GLOBALS['USER']->isAuthorized();
20 }
21
22 public function apply(array $items, Dialog $dialog): void
23 {
24 $currentUserId = \CCalendar::GetCurUserId();
25
26 foreach ($items as $item)
27 {
28 if (!($item instanceof Item))
29 {
30 continue;
31 }
32
33 if ($item->getId() === $currentUserId)
34 {
35 $item->setDeselectable(false);
36 }
37 }
38 }
39}
$GLOBALS['____1444769544']
Definition license.php:1