Bitrix API

Hook

Table of Contents

Constants

MAP  = ['gtm' => 'limit_sites_google_analytics', 'gacounter' => 'limit_sites_google_analytics', 'yacounter' => 'limit_sites_google_analytics', 'copyright' => 'limit_sites_powered_by', 'headblock' => 'limit_sites_html_js', 'theme' => 'limit_sites_change_color_palette']
Codes under limits.

Methods

getRestrictionCodeByHookCode()  : string|null
Returns restriction code by hook code.
isAllowed()  : bool
Checks hook restriction existing by code.
isHookAllowed()  : bool
Checks hook restriction by hook code.

Constants

MAP

Codes under limits.

public mixed MAP = ['gtm' => 'limit_sites_google_analytics', 'gacounter' => 'limit_sites_google_analytics', 'yacounter' => 'limit_sites_google_analytics', 'copyright' => 'limit_sites_powered_by', 'headblock' => 'limit_sites_html_js', 'theme' => 'limit_sites_change_color_palette']

Methods

getRestrictionCodeByHookCode()

Returns restriction code by hook code.

public static getRestrictionCodeByHookCode(string $hookCode) : string|null
Parameters
$hookCode : string

Hook code.

Return values
string|null

isAllowed()

Checks hook restriction existing by code.

public static isAllowed(string $code) : bool
Parameters
$code : string

Restriction code.

Return values
bool

isHookAllowed()

Checks hook restriction by hook code.

public static isHookAllowed(string $hookCode) : bool
Parameters
$hookCode : string

Hook code.

Return values
bool

        
On this page

Search results