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|nullgetPortalZone()
Returns code of portal's zone.
public
static getPortalZone() : string
Return values
stringgetShardZone()
Returns zone of portal shard.
public
static getShardZone() : string
Return values
stringgetUserLanguage()
Returns User's language in full naming ("English" for example).
public
static getUserLanguage() : string
Return values
stringgetVariable()
Returns variable from Bitrix24 module.
public
static getVariable(string $name) : mixed
Parameters
- $name : string
-
Variable name.
Tags
isDemoLicense()
Returns true if portal has demo license.
public
static isDemoLicense() : bool
Return values
boolisFeatureEnabled()
Checks that feature is enabled within tariff.
public
static isFeatureEnabled(string $code) : bool
Parameters
- $code : string
-
Feature code.
Return values
boolisFreeLicense()
Returns true if current portal (tariff) is free.
public
static isFreeLicense() : bool
Return values
boolisWestZone()
public
static isWestZone() : bool