1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
GetCurrentUserResponse.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Bizproc\Api\Response\UserService
;
4
5
use
Bitrix\Bizproc\Result
;
6
use
Bitrix\Bizproc\Api\Response\Error
;
7
use
Bitrix\Main\Engine\CurrentUser
;
8
9
class
GetCurrentUserResponse
extends
Result
10
{
11
public
static
function
createUnauthorizedError
(): static
12
{
13
return
static::createError(
Error::fromCode
(
Error::UNAUTHORIZED
));
14
}
15
16
public
function
getUser
(): ?
CurrentUser
17
{
18
return
$this->data[
'user'
] ??
null
;
19
}
20
}
Bitrix\Bizproc\Api\Response\Error
Определения
Error.php:8
Bitrix\Bizproc\Api\Response\Error\UNAUTHORIZED
const UNAUTHORIZED
Определения
Error.php:9
Bitrix\Bizproc\Api\Response\UserService\GetCurrentUserResponse
Определения
GetCurrentUserResponse.php:10
Bitrix\Bizproc\Api\Response\UserService\GetCurrentUserResponse\createUnauthorizedError
static createUnauthorizedError()
Определения
GetCurrentUserResponse.php:11
Bitrix\Bizproc\Api\Response\UserService\GetCurrentUserResponse\getUser
getUser()
Определения
GetCurrentUserResponse.php:16
Bitrix\Bizproc\Error\fromCode
static fromCode(string $code, $customData=null)
Определения
error.php:13
Bitrix\Main\Engine\CurrentUser
Определения
currentuser.php:8
Bitrix\Bizproc\Api\Response\UserService
Определения
GetCurrentUserResponse.php:3
Bitrix\Bizproc\Result
Определения
DeviceResultHandler.php:3
bitrix
modules
bizproc
lib
Api
Response
UserService
GetCurrentUserResponse.php
Создано системой
1.14.0