1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
GroupItemFactory.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Notification\Group;
4
5use Bitrix\Im\V2\Common\ContextCustomer;
6use Bitrix\Im\V2\Notification\Group\SystemGroup\SystemGroupItemFactory;
7use Bitrix\Im\V2\Notification\Group\UserGroup\UserGroupItemFactory;
8
10{
11 use ContextCustomer;
12
14 {
15 $userId = $this->getContext()->getUserId();
16 $isAdmin = $this->getContext()->getUser()->isAdmin();
17
18 $systemItems = (new SystemGroupItemFactory())->makeAllSystemItemsForUser($isAdmin, $userId);
19 $userItems = (new UserGroupItemFactory())->makeItemsForUser($userId);
20
21 return new GroupItemCollection(...array_merge($systemItems->getAll(), $userItems->getAll()));
22 }
23}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18