PHP 클래스 PartKeepr\ExportBundle\EventListener\AbstractResponderViewListener

파일 보기 프로젝트 열기: partkeepr/PartKeepr

공개 메소드들

메소드 설명
onKernelView ( GetResponseForControllerResultEvent $event ) : Response | mixed Converts the response to an exported format.

보호된 메소드들

메소드 설명
flatten ( $data, $mappings ) : array Flattens the given data. Uses the property accessor to retrieve nested data.
getWriter ( $file ) : Exporter\Writer\WriterInterface Returns the writer.

메소드 상세

flatten() 보호된 메소드

Flattens the given data. Uses the property accessor to retrieve nested data.
protected flatten ( $data, $mappings ) : array
$data array The data, typically an array of entities
$mappings array The mappings as array, e.g. [ "name", "description", "storageLocation.name" ]
리턴 array

getWriter() 추상적인 보호된 메소드

Returns the writer.
abstract protected getWriter ( $file ) : Exporter\Writer\WriterInterface
$file
리턴 Exporter\Writer\WriterInterface

onKernelView() 공개 메소드

Converts the response to an exported format.
public onKernelView ( GetResponseForControllerResultEvent $event ) : Response | mixed
$event Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent
리턴 Symfony\Component\HttpFoundation\Response | mixed