Priority list

package Zend_Mvc_Router

 Methods

Remove all routes.

clear() : void

count(): defined by Countable interface.

count() : integer

see \Countable::count()

Returns

integer

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, integer $priority) : void

Parameters

$name

string

$priority

integer

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) : integer

Parameters

$route1

$route2

array

Returns

integer

Sort all routes.

sort() : void

 Properties

 

Internal counter to avoid usage of count().

$count : integer

 

Internal list of all routes.

$routes : array

 

Serial assigned to routes to preserve LIFO.

$serial : integer

 

Whether the list was already sorted.

$sorted : bool