PHP 클래스 Sulu\Component\Rest\Csv\CsvHandler

파일 보기 프로젝트 열기: sulu/sulu

공개 프로퍼티들

프로퍼티 타입 설명
$delimiterMap array Translates request value to real delimiter.
$newLineMap array Translates request value to real new-lines.

공개 메소드들

메소드 설명
__construct ( JMS\Serializer\SerializerInterface $serializer )
createResponse ( FOS\RestBundle\View\ViewHandler $handler, FOS\RestBundle\View\View $view, Request $request, string $format ) : Response Handles response for csv-request.
prepareData ( mixed $row ) : array The exporter is not able to write DateTime objects into csv. This method converts them to string.

비공개 메소드들

메소드 설명
convertValue ( string $value, array $map ) : string Return mapped value or value itself.

메소드 상세

__construct() 공개 메소드

public __construct ( JMS\Serializer\SerializerInterface $serializer )
$serializer JMS\Serializer\SerializerInterface

createResponse() 공개 메소드

Handles response for csv-request.
public createResponse ( FOS\RestBundle\View\ViewHandler $handler, FOS\RestBundle\View\View $view, Request $request, string $format ) : Response
$handler FOS\RestBundle\View\ViewHandler
$view FOS\RestBundle\View\View
$request Symfony\Component\HttpFoundation\Request
$format string
리턴 Symfony\Component\HttpFoundation\Response

prepareData() 공개 메소드

The exporter is not able to write DateTime objects into csv. This method converts them to string.
public prepareData ( mixed $row ) : array
$row mixed
리턴 array

프로퍼티 상세

$delimiterMap 공개적으로 정적으로 프로퍼티

Translates request value to real delimiter.
public static array $delimiterMap
리턴 array

$newLineMap 공개적으로 정적으로 프로퍼티

Translates request value to real new-lines.
public static array $newLineMap
리턴 array