TimeTrex API Manual

RateLimit
in package

Table of Contents

$allowed_calls  : mixed
$group  : mixed
$id  : mixed
$memory  : mixed
$sleep  : mixed
$time_frame  : mixed
__construct()  : mixed
RateLimit constructor.
check()  : bool
delete()  : bool
getAllowedCalls()  : int
Define the number of calls to check() allowed over a given time frame.
getAttempts()  : bool
getID()  : int
getRateData()  : bool
getTimeFrame()  : int
setAllowedCalls()  : bool
setID()  : bool
setRateData()  : bool
setTimeFrame()  : bool

Properties

Methods

__construct()

RateLimit constructor.

public __construct() : mixed
Return values
mixed

getAllowedCalls()

Define the number of calls to check() allowed over a given time frame.

public getAllowedCalls() : int
Return values
int

setAllowedCalls()

public setAllowedCalls( $value) : bool
Parameters
$value :
Return values
bool

setID()

public setID( $value) : bool
Parameters
$value :
Return values
bool

setRateData()

public setRateData( $data) : bool
Parameters
$data :
Return values
bool

setTimeFrame()

public setTimeFrame( $value) : bool
Parameters
$value :
Return values
bool

Search results