Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
base.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Controller
;
4
5
use Bitrix\Intranet\ActionFilter;
6
use
Bitrix\Main\Engine\Controller
;
7
use
Bitrix\Main\Engine\CurrentUser
;
8
use
Bitrix\Main\Loader
;
9
10
class
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
}
Bitrix\Main\Engine\ActionFilter\Base
Definition
base.php:15
Bitrix\Main\Engine\Controller
Definition
controller.php:32
Bitrix\Main\Engine\CurrentUser
Definition
currentuser.php:8
Bitrix\Main\Engine\CurrentUser\get
static get()
Definition
currentuser.php:33
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\Main\Loader\includeModule
static includeModule($moduleName)
Definition
loader.php:69
Bitrix\Socialnetwork\Controller\Base\getDefaultPreFilters
getDefaultPreFilters()
Definition
base.php:14
Bitrix\Socialnetwork\Controller\Base\init
init()
Definition
base.php:31
Bitrix\Socialnetwork\Controller\Base\$userId
int $userId
Definition
base.php:12
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
Bitrix\Socialnetwork\Controller
Definition
base.php:3
modules
socialnetwork
lib
controller
base.php
Создано системой
1.10.0