Bitrix API

Bitrix24Manager

Class Bitrix24Manager

Required in Bitrix24 context. Provides information about the license and supported features.

Table of Contents

Constants

EVENT_AMOUNT  = "event_with_planner_amount"

Methods

getEventsAmount()  : int
Returns events amount
getEventWithPlannerLimit()  : int
Check if specified feature is enabled
getVariable()  : mixed|null
Get variable value.
increaseEventsAmount()  : void
Increase events amount
isEnabled()  : bool
Check if current manager enabled.
isFeatureEnabled()  : bool
Check if specified feature is enabled
isPlannerFeatureEnabled()  : bool
Check if "planner" feature is enabled
isPromoFeatureEnabled()  : bool
Check if specified feature is promo for current tariff
setEventsAmount()  : void
Sets events amount

Constants

EVENT_AMOUNT

public mixed EVENT_AMOUNT = "event_with_planner_amount"

Methods

getEventsAmount()

Returns events amount

public static getEventsAmount() : int
Return values
int

getEventWithPlannerLimit()

Check if specified feature is enabled

public static getEventWithPlannerLimit() : int
Tags
throws
LoaderException
Return values
int

getVariable()

Get variable value.

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

Name of variable

Tags
throws
LoaderException
Return values
mixed|null

increaseEventsAmount()

Increase events amount

public static increaseEventsAmount() : void
Tags
throws
ArgumentOutOfRangeException

isEnabled()

Check if current manager enabled.

public static isEnabled() : bool
Return values
bool

isFeatureEnabled()

Check if specified feature is enabled

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

Name of feature

Tags
throws
LoaderException
Return values
bool

isPlannerFeatureEnabled()

Check if "planner" feature is enabled

public static isPlannerFeatureEnabled() : bool
Tags
throws
LoaderException
Return values
bool

isPromoFeatureEnabled()

Check if specified feature is promo for current tariff

public static isPromoFeatureEnabled(mixed $featureId) : bool
Parameters
$featureId : mixed
Tags
throws
LoaderException
Return values
bool

setEventsAmount()

Sets events amount

public static setEventsAmount([int $value = 0 ]) : void
Parameters
$value : int = 0

amount of events

Tags
throws
ArgumentOutOfRangeException

        
On this page

Search results