Bitrix API

Manager

Table of Contents

Constants

MAP  = ['limit_sites_google_analytics' => ['check_callback' => ['\Bitrix\Landing\Restriction\Hook', 'isAllowed']], 'limit_sites_powered_by' => ['check_callback' => ['\Bitrix\Landing\Restriction\Hook', 'isAllowed']], 'limit_sites_html_js' => ['check_callback' => ['\Bitrix\Landing\Restriction\Hook', 'isAllowed']], 'limit_sites_change_color_palette' => ['check_callback' => ['\Bitrix\Landing\Restriction\Hook', 'isAllowed']], 'limit_sites_access_permissions' => ['check_callback' => ['\Bitrix\Landing\Restriction\Rights', 'isAllowed']], 'limit_sites_transfer' => ['check_callback' => ['\Bitrix\Landing\Restriction\Site', 'isExportAllowed']], 'limit_free_domen' => ['check_callback' => ['\Bitrix\Landing\Restriction\Site', 'isFreeDomainAllowed']], 'limit_sites_number' => ['check_callback' => ['\Bitrix\Landing\Restriction\Site', 'isCreatingAllowed'], 'scope_alias' => ['knowledge' => 'limit_knowledge_base_number_page', 'group' => 'limit_knowledge_base_number_page']], 'limit_sites_number_page' => ['check_callback' => ['\Bitrix\Landing\Restriction\Landing', 'isCreatingAllowed'], 'scope_alias' => ['knowledge' => 'limit_knowledge_base_number_page', 'group' => 'limit_knowledge_base_number_page']], 'limit_knowledge_base_number_page' => ['check_callback' => ['\Bitrix\Landing\Restriction\Site', 'isCreatingAllowed']], 'limit_knowledge_base_number_page_view' => ['check_callback' => ['\Bitrix\Landing\Restriction\Knowledge', 'isViewAllowed']], 'limit_sites_dynamic_blocks' => ['check_callback' => ['\Bitrix\Landing\Restriction\Block', 'isDynamicEnabled']], 'limit_crm_superblock' => ['check_callback' => ['\Bitrix\Landing\Restriction\Block', 'isDesignerAllowed']], 'limit_crm_free_knowledge_base_project' => ['check_callback' => ['\Bitrix\Landing\Restriction\Knowledge', 'isAllowedInGroup']], 'limit_crm_forms_templates' => ['check_callback' => ['\Bitrix\Landing\Restriction\Form', 'isMinisitesAllowed']]]
Restrictions map.

Methods

disableAllFeaturesTmp()  : void
Disable all tmp feature.
disableFeatureTmp()  : void
Disable some tmp feature.
enableFeatureTmp()  : void
Enable some feature for moment.
getActionCode()  : string|null
Returns JS action for the restriction.
getLockIcon()  : string|null
Returns lock icon html by restriction code.
getSystemErrorMessage()  : string|null
isAllowed()  : bool
Checks restriction existing by code.

Constants

MAP

Restrictions map.

public mixed MAP = ['limit_sites_google_analytics' => ['check_callback' => ['\Bitrix\Landing\Restriction\Hook', 'isAllowed']], 'limit_sites_powered_by' => ['check_callback' => ['\Bitrix\Landing\Restriction\Hook', 'isAllowed']], 'limit_sites_html_js' => ['check_callback' => ['\Bitrix\Landing\Restriction\Hook', 'isAllowed']], 'limit_sites_change_color_palette' => ['check_callback' => ['\Bitrix\Landing\Restriction\Hook', 'isAllowed']], 'limit_sites_access_permissions' => ['check_callback' => ['\Bitrix\Landing\Restriction\Rights', 'isAllowed']], 'limit_sites_transfer' => ['check_callback' => ['\Bitrix\Landing\Restriction\Site', 'isExportAllowed']], 'limit_free_domen' => ['check_callback' => ['\Bitrix\Landing\Restriction\Site', 'isFreeDomainAllowed']], 'limit_sites_number' => ['check_callback' => ['\Bitrix\Landing\Restriction\Site', 'isCreatingAllowed'], 'scope_alias' => ['knowledge' => 'limit_knowledge_base_number_page', 'group' => 'limit_knowledge_base_number_page']], 'limit_sites_number_page' => ['check_callback' => ['\Bitrix\Landing\Restriction\Landing', 'isCreatingAllowed'], 'scope_alias' => ['knowledge' => 'limit_knowledge_base_number_page', 'group' => 'limit_knowledge_base_number_page']], 'limit_knowledge_base_number_page' => ['check_callback' => ['\Bitrix\Landing\Restriction\Site', 'isCreatingAllowed']], 'limit_knowledge_base_number_page_view' => ['check_callback' => ['\Bitrix\Landing\Restriction\Knowledge', 'isViewAllowed']], 'limit_sites_dynamic_blocks' => ['check_callback' => ['\Bitrix\Landing\Restriction\Block', 'isDynamicEnabled']], 'limit_crm_superblock' => ['check_callback' => ['\Bitrix\Landing\Restriction\Block', 'isDesignerAllowed']], 'limit_crm_free_knowledge_base_project' => ['check_callback' => ['\Bitrix\Landing\Restriction\Knowledge', 'isAllowedInGroup']], 'limit_crm_forms_templates' => ['check_callback' => ['\Bitrix\Landing\Restriction\Form', 'isMinisitesAllowed']]]

Methods

disableAllFeaturesTmp()

Disable all tmp feature.

public static disableAllFeaturesTmp() : void

disableFeatureTmp()

Disable some tmp feature.

public static disableFeatureTmp(string $feature) : void
Parameters
$feature : string

Feature code.

enableFeatureTmp()

Enable some feature for moment.

public static enableFeatureTmp(string $feature) : void
Parameters
$feature : string

Feature code.

getActionCode()

Returns JS action for the restriction.

public static getActionCode(string|null $code) : string|null
Parameters
$code : string|null

Restriction code.

Return values
string|null

getLockIcon()

Returns lock icon html by restriction code.

public static getLockIcon(string|null $code[, array<string|int, mixed> $nodes = [] ]) : string|null
Parameters
$code : string|null

Restriction code.

$nodes : array<string|int, mixed> = []

Html nodes for binding click event.

Return values
string|null

getSystemErrorMessage()

public static getSystemErrorMessage(string|null $code) : string|null
Parameters
$code : string|null

Restriction code.

Return values
string|null

isAllowed()

Checks restriction existing by code.

public static isAllowed(string $code[, array<string|int, mixed> $params = [] ][, string $cacheSalt = '' ]) : bool
Parameters
$code : string

Restriction code.

$params : array<string|int, mixed> = []

Additional params.

$cacheSalt : string = ''

Additional cache salt.

Return values
bool

        
On this page

Search results