Class

ezpRestVersionedRoute

class ezpRestVersionedRoute implements ezcMvcRoute, ezcMvcReversibleRoute

Route wrapping around existing instance of ezcMvcRoute providing multiple versions of it.

Methods

__construct(ezcMvcRoute $route, $version)

matches(ezcMvcRequest $request)

void prefix(mixed $prefix)

Adds a prefix to the route.

generateUrl(array $arguments = null)

Generates an URL back out of a route, including possible arguments

Details

at line 26
public __construct(ezcMvcRoute $route, $version)

Parameters

ezcMvcRoute $route
$version

at line 32
public matches(ezcMvcRequest $request)

Parameters

ezcMvcRequest $request

at line 59
public void prefix(mixed $prefix)

Adds a prefix to the route.

Parameters

mixed $prefix Prefix to add, for example: '/blog'

Return Value

void

at line 69
public generateUrl(array $arguments = null)

Generates an URL back out of a route, including possible arguments

Parameters

array $arguments