Bitrix API

ScopeAccess extends ScopeAccess

Table of Contents

Constants

SETTINGS_ACCESS_CLASS_KEY  = 'access'
SETTINGS_ENTITYFORM_SCOPE_KEY  = 'entityFormScope'

Methods

__construct()  : mixed
canAdd()  : bool
canAddByEntityTypeId()  : bool
canDelete()  : bool
canRead()  : bool
canUpdate()  : bool
getInstance()  : ScopeAccess
isAdmin()  : bool
isAdminForEntityTypeId()  : bool

Constants

SETTINGS_ACCESS_CLASS_KEY

public mixed SETTINGS_ACCESS_CLASS_KEY = 'access'

SETTINGS_ENTITYFORM_SCOPE_KEY

public mixed SETTINGS_ENTITYFORM_SCOPE_KEY = 'entityFormScope'

Methods

__construct()

public __construct([string $moduleId = null ][, int $userId = null ]) : mixed
Parameters
$moduleId : string = null
$userId : int = null

canAddByEntityTypeId()

public canAddByEntityTypeId(string $entityTypeId) : bool
Parameters
$entityTypeId : string
Return values
bool

canDelete()

public canDelete(array<string|int, mixed>|int $scopeIds) : bool
Parameters
$scopeIds : array<string|int, mixed>|int
Return values
bool

canRead()

public canRead(int $scopeId) : bool
Parameters
$scopeId : int
Return values
bool

canUpdate()

public canUpdate(int $scopeId) : bool
Parameters
$scopeId : int
Return values
bool

getInstance()

public static getInstance(string $moduleId[, int $userId = null ]) : ScopeAccess
Parameters
$moduleId : string
$userId : int = null
Return values
ScopeAccess

isAdmin()

public isAdmin() : bool
Return values
bool

isAdminForEntityTypeId()

public isAdminForEntityTypeId(string $entityTypeId) : bool
Parameters
$entityTypeId : string
Return values
bool

        
On this page

Search results