Bitrix-D7 23.9
 
Указатель Классы Пространства имен Функции Переменные
Загрузка...
Поиск...
Не найдено
Класс Access

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

 canViewAnything ()
 
 canModifySettings ()
 
 canModifyTemplates ()
 
 canPauseStartStopLetter ()
 
 canPauseStartStopAds ()
 
 canPauseStartStopRc ()
 
 canViewLetters ()
 
 canViewTemplates ()
 
 canViewClientList ()
 
 canModifyLetters ()
 
 canStopStartPause (string $letterClass)
 
 canViewAds ()
 
 canModifyAds ()
 
 canViewRc ()
 
 canViewToloka ()
 
 canModifyRc ()
 
 canViewSegments ()
 
 canViewSegmentContact ()
 
 canModifySegments ()
 
 canViewStart ()
 
 canViewBlacklist ()
 
 canModifyBlacklist ()
 
 canViewAbuses ()
 
 canModifyAbuses ()
 
 canView ($entityCode)
 
 canModify ($entityCode)
 
 canPerform ($entityCode, $actionCode, $minPerm=null)
 

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

static current ()
 
static getInstance ($user=null)
 
static handleEvent (Event $event)
 
static registerEvent ($eventName, array $filter=[])
 

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

 $user
 
 $permissions
 
const ACTION_VIEW = 'VIEW'
 

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

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

Методы

◆ canModify()

canModify ( $entityCode)

Returns true if user can modify specified entity.

Аргументы
string$entityCode
Возвращает
bool
Исключения
ArgumentException

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

◆ canModifyAbuses()

canModifyAbuses ( )

Return true if can modify abuses.

Возвращает
bool
Исключения
ArgumentException

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

◆ canModifyAds()

canModifyAds ( )

Return true if can modify letters.

Возвращает
bool
Исключения
ArgumentException

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

◆ canModifyBlacklist()

canModifyBlacklist ( )

Return true if can modify blacklist.

Возвращает
bool
Исключения
ArgumentException

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

◆ canModifyLetters()

canModifyLetters ( )

Return true if user can modify letters.

Возвращает
bool
Исключения
ArgumentException

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

◆ canModifyRc()

canModifyRc ( )

Return true if can modify return customer tools.

Возвращает
bool
Исключения
ArgumentException

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

◆ canModifySegments()

canModifySegments ( )

Return true if can modify segments.

Возвращает
bool
Исключения
ArgumentException

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

◆ canModifySettings()

canModifySettings ( )

Return true if can modify settings.

Возвращает
bool
Исключения
ArgumentException

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

◆ canModifyTemplates()

canModifyTemplates ( )

Return true if can modify template.

Возвращает
bool
Исключения
ArgumentException

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

◆ canPauseStartStopAds()

canPauseStartStopAds ( )

Return true if can pause start or stop ADS

Возвращает
bool
Исключения
ArgumentException

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

◆ canPauseStartStopLetter()

canPauseStartStopLetter ( )

Return true if can pause start or stop Mailing

Возвращает
bool
Исключения
ArgumentException

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

◆ canPauseStartStopRc()

canPauseStartStopRc ( )

Return true if can pause start or stop RC

Возвращает
bool
Исключения
ArgumentException

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

◆ canPerform()

canPerform ( $entityCode,
$actionCode,
$minPerm = null )

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

Аргументы
string$entityCodeCode of the entity.
string$actionCodeCode of the action.
string$minPermCode of minimal permission.
Возвращает
bool
Исключения
ArgumentException

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

◆ canStopStartPause()

canStopStartPause ( string $letterClass)

Return can user start stop or pause

Аргументы
string$letterClass
Возвращает
bool

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

◆ canView()

canView ( $entityCode)

Returns true if user can view specified entity.

Аргументы
string$entityCode
Возвращает
bool
Исключения
ArgumentException

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

◆ canViewAbuses()

canViewAbuses ( )

Return true if can view abuses.

Возвращает
bool
Исключения
ArgumentException

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

◆ canViewAds()

canViewAds ( )

Return true if can view letters.

Возвращает
bool
Исключения
ArgumentException

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

◆ canViewAnything()

canViewAnything ( )

Return true if can view anything.

Возвращает
bool
Исключения
ArgumentException

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

◆ canViewBlacklist()

canViewBlacklist ( )

Return true if can view blacklist.

Возвращает
bool
Исключения
ArgumentException

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

◆ canViewClientList()

canViewClientList ( )

Return true if can view letters.

Возвращает
bool
Исключения
ArgumentException

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

◆ canViewLetters()

canViewLetters ( )

Return true if can view letters.

Возвращает
bool
Исключения
ArgumentException

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

◆ canViewRc()

canViewRc ( )

Return true if can view return customer tools.

Возвращает
bool
Исключения
ArgumentException

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

◆ canViewSegmentContact()

canViewSegmentContact ( )

Return true if can view segment contacts.

Возвращает
bool
Исключения
ArgumentException

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

◆ canViewSegments()

canViewSegments ( )

Return true if can view segments.

Возвращает
bool
Исключения
ArgumentException

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

◆ canViewStart()

canViewStart ( )

Return true if can view blacklist.

Возвращает
bool
Исключения
ArgumentException

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

◆ canViewTemplates()

canViewTemplates ( )

Return true if can view letters.

Возвращает
bool
Исключения
ArgumentException

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

◆ canViewToloka()

canViewToloka ( )

Return true if can view return customer tools.

Возвращает
bool
Исключения
ArgumentException

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

◆ current()

static current ( )
static

Get Access instance for current user.

Возвращает
static
Исключения
ArgumentException

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

◆ getInstance()

static getInstance ( $user = null)
static

singleton for DB requests optimization

Аргументы
null$user
Возвращает
Access
Исключения
ArgumentException

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

◆ handleEvent()

static handleEvent ( Event $event)
static
Аргументы
\Bitrix\Main\Event$event
Возвращает
mixed
Исключения
ArgumentException

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

◆ registerEvent()

static registerEvent ( $eventName,
array $filter = [] )
static
Аргументы
$eventName
array$filter

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

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

◆ $permissions

$permissions
protected

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

◆ $user

$user
protected

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

◆ ACTION_VIEW

const ACTION_VIEW = 'VIEW'
protected

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