PHP Класс Prado\Web\THttpResponseAdapter

THttpResponseAdapter allows the base http response class to change behavior without change the class hierarchy.
С версии: 3.0
Наследование: extends Prado\TApplicationComponent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

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

createNewHtmlWriter() публичный метод

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

flushContent() публичный метод

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

getResponse() публичный метод

public getResponse ( ) : THttpResponse
Результат THttpResponse the response object adapted.

httpRedirect() публичный метод

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