PHP Class Prado\Web\UI\ActiveControls\TCallbackEventParameter

The TCallbackEventParameter provides the parameter passed during the callback request in the {@link getCallbackParameter CallbackParameter} property. The callback response content (e.g. new HTML content) must be rendered using an THtmlWriter obtained from the {@link getNewWriter NewWriter} property, which returns a NEW instance of TCallbackResponseWriter. Each instance TCallbackResponseWriter is associated with a unique boundary delimited. By default each panel only renders its own content. To replace the content of ONE panel with that of rendered from multiple panels use the same writer instance for the panels to be rendered. The response data (i.e., passing results back to the client-side callback handler function) can be set using {@link setResponseData ResponseData} property.
Since: 3.1
Inheritance: extends Prado\TEventParameter
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $response, $parameter ) Creates a new TCallbackEventParameter.
getCallbackParameter ( ) : mixed
getNewWriter ( ) : TCallbackResponseWriter
getResponseData ( ) : mixed
setResponseData ( $value )

Method Details

__construct() public méthode

Creates a new TCallbackEventParameter.
public __construct ( $response, $parameter )

getCallbackParameter() public méthode

public getCallbackParameter ( ) : mixed
Résultat mixed callback request parameter.

getNewWriter() public méthode

public getNewWriter ( ) : TCallbackResponseWriter
Résultat TCallbackResponseWriter holds the response content.

getResponseData() public méthode

public getResponseData ( ) : mixed
Résultat mixed callback response data.

setResponseData() public méthode

public setResponseData ( $value )