Priority list

 Methods

Remove all routes.

clear() : void

count(): defined by Countable interface.

count() : int

see \Countable::count()

Returns

int

current(): defined by Iterator interface.

current() : \Zend\Mvc\Router\RouteInterface

see \Iterator::current()

Returns

Get a route.

get(string $name) : \Zend\Mvc\Router\RouteInterface

Parameters

$name

string

Returns

Insert a new route.

insert(string $name, \Zend\Mvc\Router\RouteInterface $route, int $priority) : void

Parameters

$name

string

$priority

int

key(): defined by Iterator interface.

key() : string

see \Iterator::key()

Returns

string

Remove a route.

remove(string $name) : void

Parameters

$name

string

rewind(): defined by Iterator interface.

rewind() : void

see \Iterator::rewind()

valid(): defined by Iterator interface.

valid() : bool

see \Iterator::valid()

Returns

bool

Compare the priority of two routes.

compare(array $route1, array $route2) : int

Parameters

$route1

$route2

array

Returns

int

Sort all routes.

sort() : void

 Properties

 

Internal counter to avoid usage of count().

$count : int

 

Internal list of all routes.

$routes : array

 

Serial assigned to routes to preserve LIFO.

$serial : int

 

Whether the list was already sorted.

$sorted : bool