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

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

 setUser ($contextUser)
 setUserId (?int $contextUserId)
 resetUser ()
 getUserId ()
 getUser ()

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

int $actionContextUserId = null

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

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

Методы

◆ getUser()

getUser ( )

Returns current user.

Возвращает
User

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

◆ getUserId()

getUserId ( )

Returns current user Id.

Возвращает
int

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

◆ resetUser()

resetUser ( )

Resets current context state.

Возвращает
self

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

◆ setUser()

setUser ( $contextUser)

Provides the user context for the action. If it is null the current user will be used.

Аргументы
int | User | \Bitrix\Im\User | null$contextUser

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

◆ setUserId()

setUserId ( ?int $contextUserId)

Provides the user Id for the action. If it is null the current user will be used.

Аргументы
int | null$contextUserId
Возвращает
Context

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

Поля

◆ $actionContextUserId

int $actionContextUserId = null
protected

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


Объявления и описания членов класса находятся в файле: