PHP 클래스 Neomerx\JsonApi\Encoder\Parameters\ParametersAnalyzer

상속: implements Neomerx\JsonApi\Contracts\Encoder\Parameters\ParametersAnalyzerInterface
파일 보기 프로젝트 열기: neomerx/json-api 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface $parameters, Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container ) Constructor.
getIncludeRelationships ( $path, $type )
getParameters ( )
hasSomeFields ( $type )
isPathIncluded ( $path, $type )

보호된 메소드들

메소드 설명
hasExactPathMatch ( array $paths, string $path ) : boolean If path has exact match with one of the 'include' paths.
hasMatchWithIncludedPaths ( array $paths, string $path ) : boolean If path matches one of the included paths.

비공개 메소드들

메소드 설명
getIncludePathsByType ( string $type ) : string[]
getRelationshipNameForResource ( string $curPath, integer $pathLength ) : string
getRelationshipNameForTopResource ( string $curPath ) : string

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface $parameters, Neomerx\JsonApi\Contracts\Schema\ContainerInterface $container )
$parameters Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface
$container Neomerx\JsonApi\Contracts\Schema\ContainerInterface

getIncludeRelationships() 공개 메소드

public getIncludeRelationships ( $path, $type )

getParameters() 공개 메소드

public getParameters ( )

hasExactPathMatch() 보호된 메소드

If path has exact match with one of the 'include' paths.
protected hasExactPathMatch ( array $paths, string $path ) : boolean
$paths array
$path string
리턴 boolean

hasMatchWithIncludedPaths() 보호된 메소드

If path matches one of the included paths.
protected hasMatchWithIncludedPaths ( array $paths, string $path ) : boolean
$paths array
$path string
리턴 boolean

hasSomeFields() 공개 메소드

public hasSomeFields ( $type )

isPathIncluded() 공개 메소드

public isPathIncluded ( $path, $type )