PHP 클래스 ApiPlatform\Core\Hal\Serializer\ItemNormalizer

저자: Kévin Dunglas ([email protected])
상속: extends ApiPlatform\Core\Serializer\AbstractItemNormalizer, use trait ApiPlatform\Core\Serializer\ContextTrait
파일 보기 프로젝트 열기: api-platform/core 1 사용 예제들

공개 메소드들

메소드 설명
denormalize ( $data, $class, $format = null, array $context = [] )
normalize ( $object, $format = null, array $context = [] )
supportsDenormalization ( $data, $type, $format = null )
supportsNormalization ( $data, $format = null )

보호된 메소드들

메소드 설명
getAttributes ( $object, $format, array $context )

비공개 메소드들

메소드 설명
getComponents ( object $object, string $format = null, array $context ) : array Gets HAL components of the resource: states, links and embedded.
getHalCacheKey ( string $format = null, array $context ) : boolean | string Gets the cache key to use.
getRelationIri ( array | string $rel ) : string Gets the IRI of the given relation.
populateRelation ( array $data, object $object, string $format = null, array $context, array $components, string $type ) : array Populates _links and _embedded keys.

메소드 상세

denormalize() 공개 메소드

public denormalize ( $data, $class, $format = null, array $context = [] )
$context array

getAttributes() 보호된 메소드

protected getAttributes ( $object, $format, array $context )
$context array

normalize() 공개 메소드

public normalize ( $object, $format = null, array $context = [] )
$context array

supportsDenormalization() 공개 메소드

public supportsDenormalization ( $data, $type, $format = null )

supportsNormalization() 공개 메소드

public supportsNormalization ( $data, $format = null )