PHP Interface Prado\Web\UI\IPostBackDataHandler

If a control wants to load post data, it must implement this interface.
Since: 3.0
Author: Qiang Xue ([email protected])
Datei anzeigen Open project: pradosoft/prado

Public Methods

Method Description
getDataChanged ( ) : boolean
loadPostData ( $key, $values ) : boolean Loads user input data.
raisePostDataChangedEvent ( ) Raises postdata changed event.

Method Details

getDataChanged() public method

public getDataChanged ( ) : boolean
return boolean whether postback causes the data change. Defaults to false for non-postback state.

loadPostData() public method

The implementation of this function can use $values[$key] to get the user input data that are meant for the particular control.
public loadPostData ( $key, $values ) : boolean
return boolean whether the data of the control has been changed

raisePostDataChangedEvent() public method

The implementation of this function should raise appropriate event(s) (e.g. OnTextChanged) indicating the control data is changed.