PHP Class Prado\Web\THttpResponseAdapter

THttpResponseAdapter allows the base http response class to change behavior without change the class hierarchy.
Since: 3.0
Inheritance: extends Prado\TApplicationComponent
Mostra file Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
__construct ( $response ) Constructor. Attach a response to be adapted.
createNewHtmlWriter ( $type, $writer ) This method is invoked when a new HtmlWriter needs to be created.
flushContent ( ) This method is invoked when the response flushes the content and headers.
getResponse ( ) : THttpResponse
httpRedirect ( $url ) This method is invoked when the response is to redirect to another page.

Method Details

__construct() public method

Constructor. Attach a response to be adapted.
public __construct ( $response )

createNewHtmlWriter() public method

Default implementation calls the attached response createNewHtmlWriter method.
public createNewHtmlWriter ( $type, $writer )

flushContent() public method

Default implementation calls the attached response flushContent method.
public flushContent ( )

getResponse() public method

public getResponse ( ) : THttpResponse
return THttpResponse the response object adapted.

httpRedirect() public method

This method is invoked when the response is to redirect to another page.
public httpRedirect ( $url )