1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
departmentdatafilter.php
См. документацию.
1<?php
2namespace Bitrix\Im\Integration\UI\EntitySelector;
3
4use Bitrix\UI\EntitySelector\BaseFilter;
5use Bitrix\UI\EntitySelector\Dialog;
6use Bitrix\UI\EntitySelector\Item;
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}
static getColorByNumber($number)
Определения color.php:144
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$GLOBALS['____1690880296']
Определения license.php:1
$items
Определения template.php:224