PHP Class Prado\Web\UI\ActiveControls\TTimeTriggeredCallback

TTimeTriggeredCallback sends callback request every {@link setInterval Interval} seconds. Upon each callback request, the {@link onCallback OnCallback} event is raised. The timer can be started by calling {@link startTimer()} and stopped using {@link stopTimer()}. The timer can be automatically started when {@link setStartTimerOnLoad StartTimerOnLoad} is true.
Since: 3.1
Inheritance: extends TCallback
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
getInterval ( ) : float
getStartTimerOnLoad ( ) : boolean
render ( $writer ) Registers the javascript code for initializing the active control.
setInterval ( $value )
setStartTimerOnLoad ( $value )
startTimer ( ) Registers the javascript code to start the timer.
stopTimer ( ) Registers the javascript code to stop the timer.

Méthodes protégées

Méthode Description
getClientClassName ( ) : string
getTriggerOptions ( ) : array

Method Details

getClientClassName() protected méthode

protected getClientClassName ( ) : string
Résultat string corresponding javascript class name for TTimeTriggeredCallback.

getInterval() public méthode

public getInterval ( ) : float
Résultat float seconds between callback requests. Default is 1 second.

getStartTimerOnLoad() public méthode

public getStartTimerOnLoad ( ) : boolean
Résultat boolean true to start the timer when page loads.

getTriggerOptions() protected méthode

protected getTriggerOptions ( ) : array
Résultat array list of timer options for client-side.

render() public méthode

Registers the javascript code for initializing the active control.
public render ( $writer )

setInterval() public méthode

public setInterval ( $value )

setStartTimerOnLoad() public méthode

public setStartTimerOnLoad ( $value )

startTimer() public méthode

Registers the javascript code to start the timer.
public startTimer ( )

stopTimer() public méthode

Registers the javascript code to stop the timer.
public stopTimer ( )