PHP Class Prado\Web\UI\ActiveControls\TCallbackResponseAdapter

A TCallbackResponseWriter is used instead of the TTextWrite when createHtmlWriter is called. Each call to createHtmlWriter will create a new TCallbackResponseWriter. When flushContent() is called each instance of TCallbackResponseWriter's content is flushed. The callback response data can be set using the {@link setResponseData ResponseData} property.
Since: 3.1
Inheritance: extends Prado\Web\THttpResponseAdapter
Exibir arquivo Open project: pradosoft/prado

Public Methods

Method Description
createNewHtmlWriter ( $type, $response ) Returns a new instance of THtmlWriter.
flushContent ( ) Flushes the contents in the writers.
getRedirectedUrl ( ) : string
getResponseData ( ) : mixed
httpRedirect ( $url ) Delay the redirect until we process the rest of the page.
setResponseData ( $data )

Method Details

createNewHtmlWriter() public method

An instance of TCallbackResponseWriter is created to hold the content.
public createNewHtmlWriter ( $type, $response )

flushContent() public method

Flushes the contents in the writers.
public flushContent ( )

getRedirectedUrl() public method

public getRedirectedUrl ( ) : string
return string new url for callback response to redirect to.

getResponseData() public method

public getResponseData ( ) : mixed
return mixed callback response data.

httpRedirect() public method

Delay the redirect until we process the rest of the page.
public httpRedirect ( $url )

setResponseData() public method

public setResponseData ( $data )