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
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

createNewHtmlWriter() public méthode

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

flushContent() public méthode

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

getResponse() public méthode

public getResponse ( ) : THttpResponse
Résultat THttpResponse the response object adapted.

httpRedirect() public méthode

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