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
Return values
boolcanModifyAbuses()
Return true if can modify abuses.
public
canModifyAbuses() : bool
Tags
Return values
boolcanModifyAds()
Return true if can modify letters.
public
canModifyAds() : bool
Tags
Return values
boolcanModifyBlacklist()
Return true if can modify blacklist.
public
canModifyBlacklist() : bool
Tags
Return values
boolcanModifyLetters()
Return true if user can modify letters.
public
canModifyLetters() : bool
Tags
Return values
boolcanModifyRc()
Return true if can modify return customer tools.
public
canModifyRc() : bool
Tags
Return values
boolcanModifySegments()
Return true if can modify segments.
public
canModifySegments() : bool
Tags
Return values
boolcanModifySettings()
Return true if can modify settings.
public
canModifySettings() : bool
Tags
Return values
boolcanModifyTemplates()
Return true if can modify template.
public
canModifyTemplates() : bool
Tags
Return values
boolcanPauseStartStopAds()
Return true if can pause start or stop ADS
public
canPauseStartStopAds() : bool
Tags
Return values
boolcanPauseStartStopLetter()
Return true if can pause start or stop Mailing
public
canPauseStartStopLetter() : bool
Tags
Return values
boolcanPauseStartStopRc()
Return true if can pause start or stop RC
public
canPauseStartStopRc() : bool
Tags
Return values
boolcanPerform()
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
Return values
boolcanStopStartPause()
Return can user start stop or pause
public
canStopStartPause(string $letterClass) : bool
Parameters
- $letterClass : string
Return values
boolcanView()
Returns true if user can view specified entity.
public
canView(string $entityCode) : bool
Parameters
- $entityCode : string
Tags
Return values
boolcanViewAbuses()
Return true if can view abuses.
public
canViewAbuses() : bool
Tags
Return values
boolcanViewAds()
Return true if can view letters.
public
canViewAds() : bool
Tags
Return values
boolcanViewAnything()
Return true if can view anything.
public
canViewAnything() : bool
Tags
Return values
boolcanViewBlacklist()
Return true if can view blacklist.
public
canViewBlacklist() : bool
Tags
Return values
boolcanViewClientList()
Return true if can view letters.
public
canViewClientList() : bool
Tags
Return values
boolcanViewLetters()
Return true if can view letters.
public
canViewLetters() : bool
Tags
Return values
boolcanViewRc()
Return true if can view return customer tools.
public
canViewRc() : bool
Tags
Return values
boolcanViewSegmentContact()
Return true if can view segment contacts.
public
canViewSegmentContact() : bool
Tags
Return values
boolcanViewSegments()
Return true if can view segments.
public
canViewSegments() : bool
Tags
Return values
boolcanViewStart()
Return true if can view blacklist.
public
canViewStart() : bool
Tags
Return values
boolcanViewTemplates()
Return true if can view letters.
public
canViewTemplates() : bool
Tags
Return values
boolcanViewToloka()
Return true if can view return customer tools.
public
canViewToloka() : bool
Tags
Return values
boolcurrent()
Get Access instance for current user.
public
static current() : static
Tags
Return values
staticgetInstance()
singleton for DB requests optimization
public
static getInstance([null $user = null ]) : Access
Parameters
- $user : null = null
Tags
Return values
AccesshandleEvent()
public
static handleEvent(Event $event) : mixed
Parameters
- $event : Event
Tags
registerEvent()
public
static registerEvent(mixed $eventName[, array<string|int, mixed> $filter = [] ]) : mixed
Parameters
- $eventName : mixed
- $filter : array<string|int, mixed> = []