Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Type

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

static getSiteTypeForms ($siteCode)
 
static setScope ($scope, array $params=[])
 
static clearScope ()
 
static isPublicScope (?string $scope=null)
 
static getPublicationPath ()
 
static getKeyCode ()
 
static getDomainId ()
 
static getCurrentScopeId ()
 
static getFilterType ($strict=false)
 
static getExcludedHooks ()
 
static isEnabled ($code)
 
static getOperationsForSite (int $siteId)
 

Открытые атрибуты

const SCOPE_CODE_GROUP = 'GROUP'
 
const SCOPE_CODE_KNOWLEDGE = 'KNOWLEDGE'
 
const PSEUDO_SCOPE_CODE_FORMS = 'crm_forms'
 

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

static getScopeClass ($scope)
 

Статические защищенные данные

static $currentScopeClass = null
 
static $scopeInit = false
 

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

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

Методы

◆ clearScope()

static clearScope ( )
static

Clear selected scope.

Возвращает
void

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

◆ getCurrentScopeId()

static getCurrentScopeId ( )
static

Returns current scope id.

Возвращает
string|null

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

◆ getDomainId()

static getDomainId ( )
static

Returns domain id for new site.

Возвращает
int|string

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

◆ getExcludedHooks()

static getExcludedHooks ( )
static

Returns array of hook's codes, which excluded by scope.

Возвращает
array

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

◆ getFilterType()

static getFilterType ( $strict = false)
static

Returns filter value for 'TYPE' key.

Аргументы
bool$strictIf strict, returns without default.
Возвращает
string|string[]

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

◆ getKeyCode()

static getKeyCode ( )
static

Return general key for site path (ID or CODE).

Возвращает
string

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

◆ getOperationsForSite()

static getOperationsForSite ( int $siteId)
static

Scoped method for returning available operations of site.

Аргументы
int$siteIdSite id.
См. также
\Bitrix\Landing\Rights::getOperationsForSite
Возвращает
array|null

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

◆ getPublicationPath()

static getPublicationPath ( )
static

Returns publication path string.

Возвращает
string|null

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

◆ getScopeClass()

static getScopeClass ( $scope)
staticprotected

Returns scope class, if exist.

Аргументы
string$scopeScope code.
Возвращает
string|null

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

◆ getSiteTypeForms()

static getSiteTypeForms ( $siteCode)
static

Detects site type forms and returns it.

Аргументы
$siteCode
Возвращает
string|null

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

◆ isEnabled()

static isEnabled ( $code)
static

Returns true, if type is enabled in system.

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

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

◆ isPublicScope()

static isPublicScope ( ?string $scope = null)
static

Returns true if scope is public.

Аргументы
string | null$scopeScope code.
Возвращает
bool

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

◆ setScope()

static setScope ( $scope,
array $params = [] )
static

Set global scope.

Аргументы
string$scopeScope code.
array$paramsAdditional params.
Возвращает
void

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

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

◆ $currentScopeClass

$currentScopeClass = null
staticprotected

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

◆ $scopeInit

$scopeInit = false
staticprotected

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

◆ PSEUDO_SCOPE_CODE_FORMS

const PSEUDO_SCOPE_CODE_FORMS = 'crm_forms'

Pseudo scope for crm forms.

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

◆ SCOPE_CODE_GROUP

const SCOPE_CODE_GROUP = 'GROUP'

Scope group.

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

◆ SCOPE_CODE_KNOWLEDGE

const SCOPE_CODE_KNOWLEDGE = 'KNOWLEDGE'

Scope knowledge.

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