ProjectLimit extends Limit
Class Limit
Table of Contents
Constants
- DEFAULT_LIMIT = 100
- OPTION_LIMIT_KEY = '_tasks_restrict_limit_b'
Methods
- canTurnOnTrial() : bool
- getFeatureId() : string
- getLimitCode() : string
- getLimitLock() : string
- getLimitLockClick() : string
- isFeatureEnabled() : bool
- isFeatureEnabledOrTrial() : bool
- isLimitExceeded() : bool
- Checks if limit exceeded
- isLimitExist() : bool
- Checks if limit exist
- isRelatedWithFeature() : bool
- The method checks whether the transferred feature is related to the current limit.
- turnOnTrial() : void
Constants
DEFAULT_LIMIT
public
mixed
DEFAULT_LIMIT
= 100
OPTION_LIMIT_KEY
public
mixed
OPTION_LIMIT_KEY
= '_tasks_restrict_limit_b'
Methods
canTurnOnTrial()
public
static canTurnOnTrial() : bool
Return values
boolgetFeatureId()
public
static getFeatureId() : string
Return values
stringgetLimitCode()
public
static getLimitCode() : string
Return values
stringgetLimitLock()
public
static getLimitLock(string $featureId[, string|null $bindElement = null ]) : string
Parameters
- $featureId : string
- $bindElement : string|null = null
Return values
stringgetLimitLockClick()
public
static getLimitLockClick(string $featureId[, string|null $bindElement = 'this' ][, string|null $analyticsSource = null ]) : string
Parameters
- $featureId : string
- $bindElement : string|null = 'this'
- $analyticsSource : string|null = null
Return values
stringisFeatureEnabled()
public
static isFeatureEnabled([int $groupId = 0 ]) : bool
Parameters
- $groupId : int = 0
Return values
boolisFeatureEnabledOrTrial()
public
static isFeatureEnabledOrTrial() : bool
Return values
boolisLimitExceeded()
Checks if limit exceeded
public
static isLimitExceeded([int $limit = 0 ]) : bool
Parameters
- $limit : int = 0
Tags
Return values
boolisLimitExist()
Checks if limit exist
public
static isLimitExist([int $limit = 0 ]) : bool
Parameters
- $limit : int = 0
Return values
boolisRelatedWithFeature()
The method checks whether the transferred feature is related to the current limit.
public
static isRelatedWithFeature(string $featureId) : bool
That is, it is responsible for the operation of the same functionality.
Parameters
- $featureId : string
-
Feature id.
Return values
boolturnOnTrial()
public
static turnOnTrial() : void