PHP 클래스 Prado\Web\THttpResponseAdapter

THttpResponseAdapter allows the base http response class to change behavior without change the class hierarchy.
부터: 3.0
상속: extends Prado\TApplicationComponent
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__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 )