Class MultiRouter (namespace Nette\Application)


The router broker.

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

Implements interfaces:

Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/MultiRouter.php (line 36)
Public Method Summary
string|NULL
constructUrl (PresenterRequest $appRequest, $httpRequest)
Constructs absolute URL from PresenterRequest object.
PresenterRequest|NULL
match ($httpRequest)
Maps HTTP request to a PresenterRequest object.
Methods Inherited From ArrayList
indexOf(), insertAt(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), remove()
Methods Inherited From Collection
__construct(), append(), beforeAdd(), beforeRemove(), clear(), contains(), exchangeArray(), getClass(), getIterator(), import(), isReadOnly(), remove(), search(), setArray(), setReadOnly(), __call(), __callStatic(), __get(), __isset(), __set(), __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 39

type (class, interface, PHP type)

Method Details

line 70

constructUrl

public string|NULL constructUrl (PresenterRequest $appRequest, $httpRequest)

Constructs absolute URL from PresenterRequest object.

Implementation of:

Input
PresenterRequest $appRequest
$httpRequest
Output
string|NULL  

line 51

match

public PresenterRequest|NULL match ($httpRequest)

Maps HTTP request to a PresenterRequest object.

Implementation of:

Input
$httpRequest
Output
PresenterRequest|NULL