Interface

eZ\Publish\Core\REST\Common\RequestParser

interface RequestParser

Interface for Request parsers.

Methods

array parse(string $url)

Parse URL and return the IDs contained in the URL.

string generate(string $type, array $values = array())

Generate a URL of the given type from the specified values.

mixed|false parseHref(string $href, string $attribute)

Tries to match $href as a route, and returns the value of $attribute from the result.

Details

at line 23
public array parse(string $url)

Parse URL and return the IDs contained in the URL.

Parameters

string $url

Return Value

array

at line 33
public string generate(string $type, array $values = array())

Generate a URL of the given type from the specified values.

Parameters

string $type
array $values

Return Value

string

at line 43
public mixed|false parseHref(string $href, string $attribute)

Tries to match $href as a route, and returns the value of $attribute from the result.

Parameters

string $href
string $attribute

Return Value

mixed|false