PHP Интерфейс ApiPlatform\Core\Api\IriConverterInterface

Автор: Kévin Dunglas ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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