PHP Class 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.
Since: 3.1
Inheritance: extends TTriggeredCallback
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
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.

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 TEventTriggeredCallback.

getDecayRate() public méthode

Gets the decay rate between callbacks. Default is 0;
public getDecayRate ( ) : float
Résultat float decay rate between callbacks.

getInterval() public méthode

public getInterval ( ) : float
Résultat float polling interval, 1 second default.

getPropertyName() public méthode

public getPropertyName ( ) : string
Résultat string The control property name to observe value changes.

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 )

setDecayRate() public méthode

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

setInterval() public méthode

Default is 1 second.
public setInterval ( $value )

setPropertyName() public méthode

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