PHP 클래스 JsonEncodeView, cakephp-rest-plugin

저자: Juan Basso
저자: Jonathan Dalrymple
저자: kvz
상속: extends View
파일 보기 프로젝트 열기: kvz/cakephp-rest-plugin

공개 프로퍼티들

프로퍼티 타입 설명
$jsonTab

공개 메소드들

메소드 설명
_encode ( array $response ) : string PHP version independent json_encode
array_type ( array $array ) : string Determines array type ("vector" or "map"). Returns false if not an array at all.
encode ( $response, $pretty = false )
headers ( $Controller, $settings )
json_format ( string $json ) : string Pretty print JSON http://www.php.net/manual/en/function.json-encode.php#80339
render ( $action = null, $layout = null, $file = null )
utf8_encode_array ( array $array ) : array (Recursively) utf8_encode each value in an array.

메소드 상세

_encode() 공개 메소드

Adapted from http://www.php.net/manual/en/function.json-encode.php#82904. Author: Steve (30-Apr-2008 05:35)
public _encode ( array $response ) : string
$response array
리턴 string

array_type() 공개 메소드

(I hope a native function will be introduced in some future release of PHP, because this check is inefficient and quite costly in worst case scenario.) http://www.php.net/manual/es/function.utf8-encode.php#75422
public array_type ( array $array ) : string
$array array The array to analyze
리턴 string array type ("vector" or "map") or false if not an array

encode() 공개 메소드

public encode ( $response, $pretty = false )

headers() 공개 메소드

public headers ( $Controller, $settings )

json_format() 공개 메소드

Pretty print JSON http://www.php.net/manual/en/function.json-encode.php#80339
public json_format ( string $json ) : string
$json string
리턴 string

render() 공개 메소드

public render ( $action = null, $layout = null, $file = null )

utf8_encode_array() 공개 메소드

http://www.php.net/manual/es/function.utf8-encode.php#75422
public utf8_encode_array ( array $array ) : array
$array array
리턴 array utf8_encoded

프로퍼티 상세

$jsonTab 공개적으로 프로퍼티

public $jsonTab