PHP 클래스 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.
부터: 3.1
상속: extends Prado\Web\THttpResponseAdapter
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

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

메소드 상세

createNewHtmlWriter() 공개 메소드

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

flushContent() 공개 메소드

Flushes the contents in the writers.
public flushContent ( )

getRedirectedUrl() 공개 메소드

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

getResponseData() 공개 메소드

public getResponseData ( ) : mixed
리턴 mixed callback response data.

httpRedirect() 공개 메소드

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

setResponseData() 공개 메소드

public setResponseData ( $data )