PHP 클래스 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.
부터: 3.1
상속: extends TCallback
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
getClientClassName ( ) : string
getTriggerOptions ( ) : array

메소드 상세

getClientClassName() 보호된 메소드

protected getClientClassName ( ) : string
리턴 string corresponding javascript class name for TTimeTriggeredCallback.

getInterval() 공개 메소드

public getInterval ( ) : float
리턴 float seconds between callback requests. Default is 1 second.

getStartTimerOnLoad() 공개 메소드

public getStartTimerOnLoad ( ) : boolean
리턴 boolean true to start the timer when page loads.

getTriggerOptions() 보호된 메소드

protected getTriggerOptions ( ) : array
리턴 array list of timer options for client-side.

render() 공개 메소드

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

setInterval() 공개 메소드

public setInterval ( $value )

setStartTimerOnLoad() 공개 메소드

public setStartTimerOnLoad ( $value )

startTimer() 공개 메소드

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

stopTimer() 공개 메소드

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