class RouteList extends RouteList implements IRouter, ArrayAccess, Countable, IteratorAggregate

The router broker.

Constants

PRESENTER_KEY

Methods

__construct(string $module = null)

No description

array|null
match(IRequest $httpRequest)

Maps HTTP request to an array.

string|null
constructUrl(array $params, UrlScript $refUrl)

Constructs absolute URL from array.

addRoute(string $mask, $metadata = [], int $flags = 0)

No description

withModule(string $module)

No description

string|null
getModule()

No description

int
count()

No description

void
offsetSet(mixed $index, Router $router)

No description

mixed
offsetGet(int $index)

No description

bool
offsetExists(int $index)

No description

void
offsetUnset(int $index)

No description

getIterator()

No description

Details

at line 26
__construct(string $module = null)

Parameters

string $module

at line 36
array|null match(IRequest $httpRequest)

Maps HTTP request to an array.

Parameters

IRequest $httpRequest

Return Value

array|null

at line 51
string|null constructUrl(array $params, UrlScript $refUrl)

Constructs absolute URL from array.

Parameters

array $params
UrlScript $refUrl

Return Value

string|null

at line 70
RouteList addRoute(string $mask, $metadata = [], int $flags = 0)

Parameters

string $mask
$metadata
int $flags

Return Value

RouteList

at line 80
RouteList withModule(string $module)

Parameters

string $module

Return Value

RouteList

at line 90
string|null getModule()

Return Value

string|null

at line 96
int count()

Return Value

int

at line 106
void offsetSet(mixed $index, Router $router)

Parameters

mixed $index
Router $router

Return Value

void

at line 121
mixed offsetGet(int $index)

Parameters

int $index

Return Value

mixed

Exceptions

OutOfRangeException

at line 133
bool offsetExists(int $index)

Parameters

int $index

Return Value

bool

at line 143
void offsetUnset(int $index)

Parameters

int $index

Return Value

void

Exceptions

OutOfRangeException

at line 152
ArrayIterator getIterator()

Return Value

ArrayIterator