Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс AccessService
+ Граф наследования:AccessService:

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

 __construct (int $userId, Param $param)
 
 getUserId ()
 
 checkPermissions ()
 
 checkElementPermission (int $elementId=0, int $sectionId=0, string $entityMethod=null, int $iBlockId=null,)
 
 checkIBlockPermission (int $iBlockId=null, string $entityMethod=null)
 
 checkIBlockTypePermission (string $iBlockTypeId=null)
 
 isAccessDeniedPermission (string|int $permission)
 
 isAdminPermission (string|int $permission)
 
 isCanReadPermission (string|int $permission)
 

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

static getAccessDeniedError ()
 

Защищенные статические члены

static getNotSupportedUserIdError ()
 

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

string $iBlockTypeId
 
int $iBlockId = 0
 
int $socNetGroupId = 0
 
int $userId
 
bool $isCurrentUser = false
 

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

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

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

◆ __construct()

__construct ( int $userId,
Param $param )
Исключения
ArgumentException

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

Методы

◆ checkElementPermission()

checkElementPermission ( int $elementId = 0,
int $sectionId = 0,
string $entityMethod = null,
int $iBlockId = null )
Аргументы
int$elementId
int$sectionId
string | null$entityMethod
int | null$iBlockId
Возвращает
CheckPermissionsResponse

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

◆ checkIBlockPermission()

checkIBlockPermission ( int $iBlockId = null,
string $entityMethod = null )
Аргументы
int | null$iBlockId
string | null$entityMethod
Возвращает
CheckPermissionsResponse

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

◆ checkIBlockTypePermission()

checkIBlockTypePermission ( string $iBlockTypeId = null)
Аргументы
string | null$iBlockTypeId
Возвращает
CheckPermissionsResponse

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

◆ checkPermissions()

checkPermissions ( )
Возвращает
CheckPermissionsResponse

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

◆ getAccessDeniedError()

static getAccessDeniedError ( )
static
Возвращает
Error

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

◆ getNotSupportedUserIdError()

static getNotSupportedUserIdError ( )
staticprotected
Возвращает
Error

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

◆ getUserId()

getUserId ( )
Возвращает
int

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

◆ isAccessDeniedPermission()

isAccessDeniedPermission ( string|int $permission)
Аргументы
string | int$permission
Возвращает
bool

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

◆ isAdminPermission()

isAdminPermission ( string|int $permission)
Аргументы
string | int$permission
Возвращает
bool

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

◆ isCanReadPermission()

isCanReadPermission ( string|int $permission)
Аргументы
string | int$permission
Возвращает
bool

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

Данные класса

◆ $iBlockId

int $iBlockId = 0
protected

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

◆ $iBlockTypeId

string $iBlockTypeId
protected

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

◆ $isCurrentUser

bool $isCurrentUser = false
protected

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

◆ $socNetGroupId

int $socNetGroupId = 0
protected

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

◆ $userId

int $userId
protected

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