Bitrix API

Bitrix24

Table of Contents

Methods

getLanguages()  : array<string|int, mixed>
Returns Portal's Languages.
getLicenseType()  : string|null
Returns portal's license type.
getPortalZone()  : string
Returns code of portal's zone.
getShardZone()  : string
Returns zone of portal shard.
getUserLanguage()  : string
Returns User's language in full naming ("English" for example).
getVariable()  : mixed
Returns variable from Bitrix24 module.
isDemoLicense()  : bool
Returns true if portal has demo license.
isFeatureEnabled()  : bool
Checks that feature is enabled within tariff.
isFreeLicense()  : bool
Returns true if current portal (tariff) is free.
isWestZone()  : bool

Methods

getLanguages()

Returns Portal's Languages.

public static getLanguages([string $dir = '/bitrix/templates/bitrix24' ]) : array<string|int, mixed>
Parameters
$dir : string = '/bitrix/templates/bitrix24'

Relative dir to languages file.

Return values
array<string|int, mixed>

getLicenseType()

Returns portal's license type.

public static getLicenseType() : string|null
Return values
string|null

getPortalZone()

Returns code of portal's zone.

public static getPortalZone() : string
Return values
string

getShardZone()

Returns zone of portal shard.

public static getShardZone() : string
Return values
string

getUserLanguage()

Returns User's language in full naming ("English" for example).

public static getUserLanguage() : string
Return values
string

getVariable()

Returns variable from Bitrix24 module.

public static getVariable(string $name) : mixed
Parameters
$name : string

Variable name.

Tags
throws
LoaderException

isDemoLicense()

Returns true if portal has demo license.

public static isDemoLicense() : bool
Return values
bool

isFeatureEnabled()

Checks that feature is enabled within tariff.

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

Feature code.

Return values
bool

isFreeLicense()

Returns true if current portal (tariff) is free.

public static isFreeLicense() : bool
Return values
bool

isWestZone()

public static isWestZone() : bool
Return values
bool

        
On this page

Search results