PHP 인터페이스 ApiPlatform\Core\Api\IriConverterInterface

저자: Kévin Dunglas ([email protected])
파일 보기 프로젝트 열기: api-platform/core 0 사용 예제들

공개 메소드들

메소드 설명
getIriFromItem ( object $item, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : string Gets the IRI associated with the given item.
getIriFromResourceClass ( string $resourceClass, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : string Gets the IRI associated with the given resource collection.
getItemFromIri ( string $iri, array $context = [] ) : object Retrieves an item from its IRI.

메소드 상세

getIriFromItem() 공개 메소드

Gets the IRI associated with the given item.
public getIriFromItem ( object $item, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : string
$item object
$referenceType integer
리턴 string

getIriFromResourceClass() 공개 메소드

Gets the IRI associated with the given resource collection.
public getIriFromResourceClass ( string $resourceClass, integer $referenceType = UrlGeneratorInterface::ABS_PATH ) : string
$resourceClass string
$referenceType integer
리턴 string

getItemFromIri() 공개 메소드

Retrieves an item from its IRI.
public getItemFromIri ( string $iri, array $context = [] ) : object
$iri string
$context array
리턴 object