PHP Класс Zaphpa_Response, zaphpa

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$chunks Ordered chunks of the output buffer *
$code

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

Метод Описание
__construct ( $request = null ) Public constructor *
add ( $out ) Add string to output buffer.
disableBrowserCache ( ) Send headers to instruct browser not to cache this content See http://stackoverflow.com/a/2068407
flush ( $code = null, $format = null ) : current Send output to client without ending the script
getFormat ( )
send ( $code = null, $format = null ) Flush output buffer to http client and end request
setFormat ( $format ) Set output format. Common aliases like: xml, json, html and txt are supported and automatically converted to proper HTTP content type definitions.

Приватные методы

Метод Описание
codes ( )
sendHeaders ( ) Send entire collection of headers if they haven't already been sent

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

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

Public constructor *
public __construct ( $request = null )

add() публичный Метод

Add string to output buffer.
public add ( $out )

disableBrowserCache() публичный Метод

Send headers to instruct browser not to cache this content See http://stackoverflow.com/a/2068407
public disableBrowserCache ( )

flush() публичный Метод

@param $code HTTP response Code. Defaults to 200
public flush ( $code = null, $format = null ) : current
$format Output mime type. Defaults to request format @return current respons eobject, so you can chain method calls on a response object.
Результат current

getFormat() публичный Метод

public getFormat ( )

send() публичный Метод

@param $code HTTP response Code. Defaults to 200
public send ( $code = null, $format = null )
$format Output mime type. Defaults to request format

setFormat() публичный Метод

Set output format. Common aliases like: xml, json, html and txt are supported and automatically converted to proper HTTP content type definitions.
public setFormat ( $format )

Описание свойств

$chunks публичное свойство

Ordered chunks of the output buffer *
public $chunks

$code публичное свойство

public $code