PHP Интерфейс eZ\Publish\Core\REST\Common\RequestParser

Показать файл Открыть проект Примеры использования интерфейса

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

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

Описание методов

generate() публичный Метод

Generate a URL of the given type from the specified values.
public generate ( string $type, array $values = [] ) : string
$type string
$values array
Результат string

parse() публичный Метод

Parse URL and return the IDs contained in the URL.
public parse ( string $url ) : array
$url string
Результат array

parseHref() публичный Метод

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
Результат mixed | false