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
Показать файл Открыть проект

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

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