1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
user.php
См. документацию.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
Bitrix\Socialnetwork\Integration\Intranet;
6
7
use Bitrix\Main\Loader;
8
9
class
User
10
{
11
public
static
function
isIntranet
(
int
$userId
): bool
12
{
13
if
(!Loader::includeModule(
'intranet'
))
14
{
15
return
false
;
16
}
17
18
if
(
$userId
<= 0)
19
{
20
return
false
;
21
}
22
23
return
(
new
\
Bitrix
\
Intranet
\
User
(
$userId
))->isIntranet();
24
}
25
}
$userId
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения
check_mail.php:18
Bitrix\Socialnetwork\Integration\Intranet\User
Определения
user.php:10
Bitrix\Socialnetwork\Integration\Intranet\User\isIntranet
static isIntranet(int $userId)
Определения
user.php:11
Bitrix\Socialnetwork\Integration\Intranet
Bitrix
bitrix
modules
socialnetwork
lib
integration
intranet
user.php
Создано системой
1.14.0