Class MultiRouter (namespace Nette\Application)


The router broker.

ArrayObject
   |
   --Collection
      |
      --ArrayList
         |
         --MultiRouter

Implements interfaces:

IRouter
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/MultiRouter.php (line 38)
Method Summary
string|NULL
constructUrl (PresenterRequest $request, $context)
Constructs absolute URL from PresenterRequest object.
PresenterRequest|NULL
match ($context)
Maps HTTP request to a PresenterRequest object.
Methods Inherited From ArrayList
ArrayList::indexOf(), ArrayList::insertAt(), ArrayList::offsetExists(), ArrayList::offsetGet(), ArrayList::offsetSet(), ArrayList::offsetUnset(), ArrayList::remove()
Methods Inherited From Collection
Collection::__construct(), Collection::append(), Collection::beforeAdd(), Collection::beforeRemove(), Collection::clear(), Collection::contains(), Collection::exchangeArray(), Collection::getClass(), Collection::getIterator(), Collection::import(), Collection::isReadOnly(), Collection::remove(), Collection::search(), Collection::setArray(), Collection::setReadOnly(), Collection::__call(), Collection::__callStatic(), Collection::__get(), Collection::__set(), Collection::__unset()
Methods Inherited From ArrayObject (Internal Class)
constructor __construct ( $array ), append ( $value ), asort ( ), count ( ), exchangeArray ( $array ), getArrayCopy ( ), getFlags ( ), getIterator ( ), getIteratorClass ( ), ksort ( ), natcasesort ( ), natsort ( ), offsetExists ( $index ), offsetGet ( $index ), offsetSet ( $index, $newval ), offsetUnset ( $index ), setFlags ( $flags ), setIteratorClass ( $iteratorClass ), uasort ( $cmp_function ), uksort ( $cmp_function )
Constant Summary
Constants Inherited From ArrayObject (Internal Class)
ARRAY_AS_PROPS = 2, STD_PROP_LIST = 1
Variable Summary
protected string $itemType 'IRouter'

line 44

type (class, interface, PHP type)
IRouter $matched

line 41


Method Details

line 76

constructUrl

public string|NULL constructUrl (PresenterRequest $request, $context)

Constructs absolute URL from PresenterRequest object.

Implementation of:

Input
PresenterRequest $request
$context
Output
string|NULL  

line 56

match

public PresenterRequest|NULL match ($context)

Maps HTTP request to a PresenterRequest object.

Implementation of:

Input
$context
Output
PresenterRequest|NULL