Bitrix API

LoadLimiter

Class LoadLimiter

Table of Contents

Methods

finalize()  : void
Saves working time by Background Job
getLimitTime()  : int
Returns loads time limit per 10 min.
getResetTime()  : int|null
Returns time to reset limits.
getRestTime()  : float
Returns methods working time.
is()  : bool
Checks block by limiter.
isActive()  : bool
Checks limiter status.
registerEnding()  : void
Register ending doing method.
registerStarting()  : void
Register starting doing method.

Methods

finalize()

Saves working time by Background Job

public static finalize() : void
Tags
throws
LoaderException

getLimitTime()

Returns loads time limit per 10 min.

public static getLimitTime() : int
Return values
int

getResetTime()

Returns time to reset limits.

public static getResetTime(mixed $entityType, mixed $entity, mixed $method) : int|null
Parameters
$entityType : mixed
$entity : mixed
$method : mixed
Tags
throws
LoaderException
Return values
int|null

getRestTime()

Returns methods working time.

public static getRestTime(mixed $entityType, mixed $entity, mixed $method) : float
Parameters
$entityType : mixed
$entity : mixed
$method : mixed
Tags
throws
LoaderException
Return values
float

is()

Checks block by limiter.

public static is(mixed $entityType, mixed $entity, mixed $method) : bool
Parameters
$entityType : mixed
$entity : mixed
$method : mixed
Tags
throws
LoaderException
Return values
bool

( true - block, false - don't block)

isActive()

Checks limiter status.

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

registerEnding()

Register ending doing method.

public static registerEnding(mixed $entityType, mixed $entity, mixed $method) : void
Parameters
$entityType : mixed
$entity : mixed
$method : mixed

registerStarting()

Register starting doing method.

public static registerStarting(mixed $entityType, mixed $entity, mixed $method) : void
Parameters
$entityType : mixed
$entity : mixed
$method : mixed

        
On this page

Search results