1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
IntranetUserFilter.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5
6namespace Bitrix\Socialnetwork\Collab\Controller\Filter;
7
8use Bitrix\Intranet\ActionFilter\IntranetUser;
9use Bitrix\Main\Engine\ActionFilter\Base;
10use Bitrix\Main\Error;
11use Bitrix\Main\Event;
12use Bitrix\Main\EventResult;
13use Bitrix\Main\Loader;
14
16{
18 {
19 if (!Loader::includeModule('intranet'))
20 {
21 $this->addError(new Error('Intranet module is not installed', 'intranet_required'));
22
23 return new EventResult(EventResult::ERROR, null, null, $this);
24 }
25
26 $filter = new IntranetUser();
27
28 $eventResult = $filter->onBeforeAction($event);
29
30 $errors = $filter->getErrors();
31 foreach ($errors as $error)
32 {
33 $this->addError($error);
34 }
35
36 return $eventResult;
37 }
38}
addError(Error $error)
Определения base.php:80
Определения error.php:15
Определения event.php:5
$errors
Определения iblock_catalog_edit.php:74
$filter
Определения iblock_catalog_list.php:54
$event
Определения prolog_after.php:141
$error
Определения subscription_card_product.php:20