1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс User

Открытые члены

 __construct ($id=null)
 getId ()
 isAdmin ()
 hasAccess ()
 getAccess ()
 canView ()
 canEdit ()
 isPortalAdmin ()
 isExtranet ()
 isAgreementAccepted ()
 canEditPhp ()
 canUseLpa ()
 getObject ()

Открытые статические члены

static current ()
static get ($id)

Защищенные данные

 $id = null
 $object
 $access

Статические защищенные данные

static $instanceCurrentUser
static $instance
static array $cache = []

Подробное описание

См. определение в файле user.php строка 24

Конструктор(ы)

◆ __construct()

__construct ( $id = null)

User constructor.

Аргументы
integer | null$idID.

См. определение в файле user.php строка 78

Методы

◆ canEdit()

canEdit ( )

Return true if current user can edit on module pages.

Возвращает
bool

См. определение в файле user.php строка 199

◆ canEditPhp()

canEditPhp ( )

Return true if current user can edit php.

Возвращает
bool

См. определение в файле user.php строка 297

◆ canUseLpa()

canUseLpa ( )

Return true if current user can use LPA.

Возвращает
bool

См. определение в файле user.php строка 312

◆ canView()

canView ( )

Return true if current user can view module pages.

Возвращает
bool

См. определение в файле user.php строка 144

◆ current()

current ( )
static

Get current user.

Возвращает
static

См. определение в файле user.php строка 47

◆ get()

get ( $id)
static

Get user by ID.

Аргументы
integer$idID.
Возвращает
static

См. определение в файле user.php строка 63

◆ getAccess()

getAccess ( )

Return access instance.

Возвращает
Access
Исключения

Bitrix\Main\ArgumentException

См. определение в файле user.php строка 129

◆ getId()

getId ( )

Get current user ID.

Возвращает
integer|null

См. определение в файле user.php строка 88

◆ getObject()

getObject ( )

Get USER object.

Возвращает
\CUser|null

См. определение в файле user.php строка 327

◆ hasAccess()

hasAccess ( )

Return true if current user has access to one or more module pages.

Возвращает
bool

См. определение в файле user.php строка 118

◆ isAdmin()

isAdmin ( )

Return true if current user is admin.

Возвращает
bool

См. определение в файле user.php строка 103

◆ isAgreementAccepted()

isAgreementAccepted ( )

Return true if user accepted agreement.

Возвращает
bool

См. определение в файле user.php строка 282

◆ isExtranet()

isExtranet ( )

См. определение в файле user.php строка 239

◆ isPortalAdmin()

isPortalAdmin ( )

Return true if current user is portal admin.

Возвращает
bool

См. определение в файле user.php строка 229

Поля

◆ $access

$access
protected

См. определение в файле user.php строка 33

◆ $cache

array $cache = []
staticprotected

См. определение в файле user.php строка 41

◆ $id

$id = null
protected

См. определение в файле user.php строка 27

◆ $instance

$instance
staticprotected

См. определение в файле user.php строка 39

◆ $instanceCurrentUser

$instanceCurrentUser
staticprotected

См. определение в файле user.php строка 36

◆ $object

$object
protected

См. определение в файле user.php строка 30


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/sender/lib/security/user.php