Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
departmentdatafilter.php
1<?php
3
7
9{
10 public function __construct()
11 {
12 parent::__construct();
13 }
14
15 public function isAvailable(): bool
16 {
17 return $GLOBALS['USER']->isAuthorized();
18 }
19
20 public function apply(array $items, Dialog $dialog): void
21 {
22 foreach ($items as $item)
23 {
24 if (!($item instanceof Item))
25 {
26 continue;
27 }
28
29 $itemColor = \Bitrix\Im\Color::getColorByNumber($item->getId());
30 $item->setAvatarOptions(['color' => $itemColor]);
31 }
32 }
33}
$GLOBALS['____1444769544']
Definition license.php:1