FilterLimit extends Limit
Class FilterLimit
Table of Contents
Constants
- DEFAULT_LIMIT = 100
- OPTION_LIMIT_KEY = '_tasks_restrict_limit_b'
Methods
- getFeatureId() : string
- getLimitCode() : string
- getLimitLock() : string
- getLimitLockClick() : string
- getLimitWarningValue() : int
- 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.
- notifyLimitWarning() : void
- prepareStubInfo() : array<string|int, mixed>|null
Constants
DEFAULT_LIMIT
public
mixed
DEFAULT_LIMIT
= 100
OPTION_LIMIT_KEY
public
mixed
OPTION_LIMIT_KEY
= '_tasks_restrict_limit_b'
Methods
getFeatureId()
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
stringgetLimitWarningValue()
public
static getLimitWarningValue([int|null $userId = null ]) : int
Parameters
- $userId : int|null = null
Tags
Return values
intisLimitExceeded()
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
boolnotifyLimitWarning()
public
static notifyLimitWarning([int|null $userId = null ][, int $warningCount = 0 ]) : void
Parameters
- $userId : int|null = null
- $warningCount : int = 0
Tags
prepareStubInfo()
public
static prepareStubInfo([array<string|int, mixed>|null $params = null ]) : array<string|int, mixed>|null
Parameters
- $params : array<string|int, mixed>|null = null