PHP 클래스 CsvEncodeView, cakephp-rest-plugin

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

공개 메소드들

메소드 설명
encode ( array $response ) : string create csv string from response
headers ( $Controller, $settings )
render ( $action = null, $layout = null, $file = null )

보호된 메소드들

메소드 설명
_putcsv ( array $row, string $delimiter = ';', string $enclosure = '"', string $eol = " " ) : string Creating a file resource to php://temp so we don;t save a real file and return the string of that csv line

메소드 상세

_putcsv() 보호된 메소드

Creating a file resource to php://temp so we don;t save a real file and return the string of that csv line
protected _putcsv ( array $row, string $delimiter = ';', string $enclosure = '"', string $eol = " " ) : string
$row array
$delimiter string
$enclosure string
$eol string
리턴 string

encode() 공개 메소드

create csv string from response
public encode ( array $response ) : string
$response array with 'meta' and 'data' part
리턴 string

headers() 공개 메소드

public headers ( $Controller, $settings )

render() 공개 메소드

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