Bitrix API

TimeLimit

Timer.

Tags
@implements

Volume\IVolumeTimeLimit

Table of Contents

Methods

checkTimeEnd()  : bool
Checks timer for time limitation.
getTimeLimit()  : int
Gets limitation time in seconds.
hasTimeLimitReached()  : bool
Tells true if time limit reached.
instanceTimer()  : Timer
Gets timer.
setTimeLimit()  : static
Sets limitation time in seconds.
setTimer()  : void
Sets start up time.
startTimer()  : void
Sets start up time.

Methods

checkTimeEnd()

Checks timer for time limitation.

public checkTimeEnd() : bool
Return values
bool

getTimeLimit()

Gets limitation time in seconds.

public getTimeLimit() : int
Return values
int

hasTimeLimitReached()

Tells true if time limit reached.

public hasTimeLimitReached() : bool
Return values
bool

setTimeLimit()

Sets limitation time in seconds.

public setTimeLimit(int $timeLimit) : static
Parameters
$timeLimit : int

Timeout in seconds.

Return values
static

setTimer()

Sets start up time.

public setTimer(Timer $timer) : void
Parameters
$timer : Timer

startTimer()

Sets start up time.

public startTimer() : void

        
On this page

Search results