PHP 인터페이스 Tobscure\JsonApi\ElementInterface

파일 보기 프로젝트 열기: tobscure/json-api 0 사용 예제들

공개 메소드들

메소드 설명
fields ( array | null $fields ) Request a restricted set of fields.
getResources ( ) : array Get the resources array.
toArray ( ) : array Map to a "resource object" array.
toIdentifier ( ) : array Map to a "resource object identifier" array.
with ( string | array $relationships ) Request a relationship to be included.

메소드 상세

fields() 공개 메소드

Request a restricted set of fields.
public fields ( array | null $fields )
$fields array | null

getResources() 공개 메소드

Get the resources array.
public getResources ( ) : array
리턴 array

toArray() 공개 메소드

Map to a "resource object" array.
public toArray ( ) : array
리턴 array

toIdentifier() 공개 메소드

Map to a "resource object identifier" array.
public toIdentifier ( ) : array
리턴 array

with() 공개 메소드

Request a relationship to be included.
public with ( string | array $relationships )
$relationships string | array