PHP Class Sulu\Component\Rest\Csv\CsvHandler

Afficher le fichier Open project: sulu/sulu

Méthodes publiques

Свойство Type Description
$delimiterMap array Translates request value to real delimiter.
$newLineMap array Translates request value to real new-lines.

Méthodes publiques

Méthode 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

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

Method Details

__construct() public méthode

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

createResponse() public méthode

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
Résultat Symfony\Component\HttpFoundation\Response

prepareData() public méthode

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

Property Details

$delimiterMap public_oe static_oe property

Translates request value to real delimiter.
public static array $delimiterMap
Résultat array

$newLineMap public_oe static_oe property

Translates request value to real new-lines.
public static array $newLineMap
Résultat array