PHP Class Sulu\Component\Rest\Csv\CsvHandler

ファイルを表示 Open project: sulu/sulu

Public Properties

Property Type Description
$delimiterMap array Translates request value to real delimiter.
$newLineMap array Translates request value to real new-lines.

Public Methods

Method Description
__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.

Private Methods

Method Description
convertValue ( string $value, array $map ) : string Return mapped value or value itself.

Method Details

__construct() public method

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

createResponse() public method

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
return Symfony\Component\HttpFoundation\Response

prepareData() public method

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

Property Details

$delimiterMap public_oe static_oe property

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

$newLineMap public_oe static_oe property

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