PHP Interface eZ\Publish\Core\REST\Common\RequestParser

Afficher le fichier Open project: ezsystems/ezpublish-kernel Interface Usage Examples

Méthodes publiques

Méthode Description
generate ( string $type, array $values = [] ) : string Generate a URL of the given type from the specified values.
parse ( string $url ) : array Parse URL and return the IDs contained in the URL.
parseHref ( string $href, string $attribute ) : mixed | false Tries to match $href as a route, and returns the value of $attribute from the result.

Method Details

generate() public méthode

Generate a URL of the given type from the specified values.
public generate ( string $type, array $values = [] ) : string
$type string
$values array
Résultat string

parse() public méthode

Parse URL and return the IDs contained in the URL.
public parse ( string $url ) : array
$url string
Résultat array

parseHref() public méthode

Tries to match $href as a route, and returns the value of $attribute from the result.
public parseHref ( string $href, string $attribute ) : mixed | false
$href string
$attribute string
Résultat mixed | false