1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
base.php
См. документацию.
1<?php
2
3namespace Bitrix\Socialnetwork\Controller;
4
5use Bitrix\Intranet\ActionFilter;
6use Bitrix\Main\Engine\Controller;
7use Bitrix\Main\Engine\CurrentUser;
8use Bitrix\Main\Loader;
9
10class Base extends Controller
11{
12 protected int $userId;
13
14 protected function getDefaultPreFilters(): array
15 {
16 $preFilters = parent::getDefaultPreFilters();
17
18 if (Loader::includeModule('intranet'))
19 {
20 $preFilters[] = new ActionFilter\UserType([
21 'employee',
22 'extranet',
23 'email',
24 'replica',
25 ]);
26 }
27
28 return $preFilters;
29 }
30
31 protected function init(): void
32 {
33 parent::init();
34 $this->userId = CurrentUser::get()->getId();
35 }
36}
static get()
Определения currentuser.php:33
static includeModule($moduleName)
Определения loader.php:67
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804