PHP 클래스 Zaphpa_Response, zaphpa

파일 보기 프로젝트 열기: zaphpa/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