PHP Interface ApiPlatform\Core\Api\IriConverterInterface

Author: Kévin Dunglas ([email protected])
Afficher le fichier Open project: api-platform/core Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

getIriFromItem() public méthode

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

getIriFromResourceClass() public méthode

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

getItemFromIri() public méthode

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