Bitrix API

Access

Class Access

Table of Contents

Methods

canModify()  : bool
Returns true if user can modify specified entity.
canModifyAbuses()  : bool
Return true if can modify abuses.
canModifyAds()  : bool
Return true if can modify letters.
canModifyBlacklist()  : bool
Return true if can modify blacklist.
canModifyLetters()  : bool
Return true if user can modify letters.
canModifyRc()  : bool
Return true if can modify return customer tools.
canModifySegments()  : bool
Return true if can modify segments.
canModifySettings()  : bool
Return true if can modify settings.
canModifyTemplates()  : bool
Return true if can modify template.
canPauseStartStopAds()  : bool
Return true if can pause start or stop ADS
canPauseStartStopLetter()  : bool
Return true if can pause start or stop Mailing
canPauseStartStopRc()  : bool
Return true if can pause start or stop RC
canPerform()  : bool
Returns true if user can perform specified action on the entity.
canStopStartPause()  : bool
Return can user start stop or pause
canView()  : bool
Returns true if user can view specified entity.
canViewAbuses()  : bool
Return true if can view abuses.
canViewAds()  : bool
Return true if can view letters.
canViewAnything()  : bool
Return true if can view anything.
canViewBlacklist()  : bool
Return true if can view blacklist.
canViewClientList()  : bool
Return true if can view letters.
canViewLetters()  : bool
Return true if can view letters.
canViewRc()  : bool
Return true if can view return customer tools.
canViewSegmentContact()  : bool
Return true if can view segment contacts.
canViewSegments()  : bool
Return true if can view segments.
canViewStart()  : bool
Return true if can view blacklist.
canViewTemplates()  : bool
Return true if can view letters.
canViewToloka()  : bool
Return true if can view return customer tools.
current()  : static
Get Access instance for current user.
getInstance()  : Access
singleton for DB requests optimization
handleEvent()  : mixed
registerEvent()  : mixed

Methods

canModify()

Returns true if user can modify specified entity.

public canModify(string $entityCode) : bool
Parameters
$entityCode : string
Tags
throws
ArgumentException
Return values
bool

canModifyAbuses()

Return true if can modify abuses.

public canModifyAbuses() : bool
Tags
throws
ArgumentException
Return values
bool

canModifyAds()

Return true if can modify letters.

public canModifyAds() : bool
Tags
throws
ArgumentException
Return values
bool

canModifyBlacklist()

Return true if can modify blacklist.

public canModifyBlacklist() : bool
Tags
throws
ArgumentException
Return values
bool

canModifyLetters()

Return true if user can modify letters.

public canModifyLetters() : bool
Tags
throws
ArgumentException
Return values
bool

canModifyRc()

Return true if can modify return customer tools.

public canModifyRc() : bool
Tags
throws
ArgumentException
Return values
bool

canModifySegments()

Return true if can modify segments.

public canModifySegments() : bool
Tags
throws
ArgumentException
Return values
bool

canModifySettings()

Return true if can modify settings.

public canModifySettings() : bool
Tags
throws
ArgumentException
Return values
bool

canModifyTemplates()

Return true if can modify template.

public canModifyTemplates() : bool
Tags
throws
ArgumentException
Return values
bool

canPauseStartStopAds()

Return true if can pause start or stop ADS

public canPauseStartStopAds() : bool
Tags
throws
ArgumentException
Return values
bool

canPauseStartStopLetter()

Return true if can pause start or stop Mailing

public canPauseStartStopLetter() : bool
Tags
throws
ArgumentException
Return values
bool

canPauseStartStopRc()

Return true if can pause start or stop RC

public canPauseStartStopRc() : bool
Tags
throws
ArgumentException
Return values
bool

canPerform()

Returns true if user can perform specified action on the entity.

public canPerform(string $entityCode, string $actionCode[, string $minPerm = null ]) : bool
Parameters
$entityCode : string

Code of the entity.

$actionCode : string

Code of the action.

$minPerm : string = null

Code of minimal permission.

Tags
throws
ArgumentException
Return values
bool

canStopStartPause()

Return can user start stop or pause

public canStopStartPause(string $letterClass) : bool
Parameters
$letterClass : string
Return values
bool

canView()

Returns true if user can view specified entity.

public canView(string $entityCode) : bool
Parameters
$entityCode : string
Tags
throws
ArgumentException
Return values
bool

canViewAbuses()

Return true if can view abuses.

public canViewAbuses() : bool
Tags
throws
ArgumentException
Return values
bool

canViewAds()

Return true if can view letters.

public canViewAds() : bool
Tags
throws
ArgumentException
Return values
bool

canViewAnything()

Return true if can view anything.

public canViewAnything() : bool
Tags
throws
ArgumentException
Return values
bool

canViewBlacklist()

Return true if can view blacklist.

public canViewBlacklist() : bool
Tags
throws
ArgumentException
Return values
bool

canViewClientList()

Return true if can view letters.

public canViewClientList() : bool
Tags
throws
ArgumentException
Return values
bool

canViewLetters()

Return true if can view letters.

public canViewLetters() : bool
Tags
throws
ArgumentException
Return values
bool

canViewRc()

Return true if can view return customer tools.

public canViewRc() : bool
Tags
throws
ArgumentException
Return values
bool

canViewSegmentContact()

Return true if can view segment contacts.

public canViewSegmentContact() : bool
Tags
throws
ArgumentException
Return values
bool

canViewSegments()

Return true if can view segments.

public canViewSegments() : bool
Tags
throws
ArgumentException
Return values
bool

canViewStart()

Return true if can view blacklist.

public canViewStart() : bool
Tags
throws
ArgumentException
Return values
bool

canViewTemplates()

Return true if can view letters.

public canViewTemplates() : bool
Tags
throws
ArgumentException
Return values
bool

canViewToloka()

Return true if can view return customer tools.

public canViewToloka() : bool
Tags
throws
ArgumentException
Return values
bool

current()

Get Access instance for current user.

public static current() : static
Tags
throws
ArgumentException
Return values
static

getInstance()

singleton for DB requests optimization

public static getInstance([null $user = null ]) : Access
Parameters
$user : null = null
Tags
throws
ArgumentException
Return values
Access

handleEvent()

public static handleEvent(Event $event) : mixed
Parameters
$event : Event
Tags
throws
ArgumentException

registerEvent()

public static registerEvent(mixed $eventName[, array<string|int, mixed> $filter = [] ]) : mixed
Parameters
$eventName : mixed
$filter : array<string|int, mixed> = []

        
On this page

Search results