PHP 클래스 Prado\Web\UI\ActiveControls\TValueTriggeredCallback

Observes the value with {@link setPropertyName PropertyName} of a control with {@link setControlID ControlID}. Changes to the observed property value will trigger a new callback request. The property value is checked for changes every{@link setInterval Interval} seconds. A {@link setDecayRate DecayRate} can be set to increase the polling interval linearly if no changes are observed. Once a change is observed, the polling interval is reset to the original value.
부터: 3.1
상속: extends TTriggeredCallback
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
getDecayRate ( ) : float Gets the decay rate between callbacks. Default is 0;
getInterval ( ) : float
getPropertyName ( ) : string
render ( $writer ) Registers the javascript code for initializing the active control.
setDecayRate ( $value ) Sets the decay rate between callback. Default is 0;
setInterval ( $value ) Sets the polling interval in seconds to observe property changes.
setPropertyName ( $value ) Sets the control property name to observe value changes that fires the callback request.

보호된 메소드들

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

메소드 상세

getClientClassName() 보호된 메소드

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

getDecayRate() 공개 메소드

Gets the decay rate between callbacks. Default is 0;
public getDecayRate ( ) : float
리턴 float decay rate between callbacks.

getInterval() 공개 메소드

public getInterval ( ) : float
리턴 float polling interval, 1 second default.

getPropertyName() 공개 메소드

public getPropertyName ( ) : string
리턴 string The control property name to observe value changes.

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 )

setDecayRate() 공개 메소드

Sets the decay rate between callback. Default is 0;
public setDecayRate ( $value )

setInterval() 공개 메소드

Default is 1 second.
public setInterval ( $value )

setPropertyName() 공개 메소드

Sets the control property name to observe value changes that fires the callback request.
public setPropertyName ( $value )