PHP 클래스 Flugg\Responder\Serializers\ApiSerializer

저자: Alexander Tømmerås ([email protected])
상속: extends League\Fractal\Serializer\ArraySerializer
파일 보기 프로젝트 열기: flugger/laravel-responder

공개 메소드들

메소드 설명
collection ( string $resourceKey, array $data ) : array Serialize a collection.
includedData ( League\Fractal\Resource\ResourceInterface $resource, array $data ) : array Serialize the included data.
item ( string $resourceKey, array $data ) : array Serialize an item.
mergeIncludes ( array $transformedData, array $includedData ) : array Merges any relations into the data. The 'data' field is also removed.
meta ( array $meta ) : array Serialize the meta.
null ( ) : array Serialize a null resource.
paginator ( League\Fractal\Pagination\PaginatorInterface $paginator ) : array Serialize the paginator.
sideloadIncludes ( ) : boolean Indicates if includes should be side-loaded.

메소드 상세

collection() 공개 메소드

Serialize a collection.
public collection ( string $resourceKey, array $data ) : array
$resourceKey string
$data array
리턴 array

includedData() 공개 메소드

Serialize the included data.
public includedData ( League\Fractal\Resource\ResourceInterface $resource, array $data ) : array
$resource League\Fractal\Resource\ResourceInterface
$data array
리턴 array

item() 공개 메소드

Serialize an item.
public item ( string $resourceKey, array $data ) : array
$resourceKey string
$data array
리턴 array

mergeIncludes() 공개 메소드

Merges any relations into the data. The 'data' field is also removed.
public mergeIncludes ( array $transformedData, array $includedData ) : array
$transformedData array
$includedData array
리턴 array

meta() 공개 메소드

Serialize the meta.
public meta ( array $meta ) : array
$meta array
리턴 array

null() 공개 메소드

Serialize a null resource.
public null ( ) : array
리턴 array

paginator() 공개 메소드

Serialize the paginator.
public paginator ( League\Fractal\Pagination\PaginatorInterface $paginator ) : array
$paginator League\Fractal\Pagination\PaginatorInterface
리턴 array

sideloadIncludes() 공개 메소드

Indicates if includes should be side-loaded.
public sideloadIncludes ( ) : boolean
리턴 boolean