Class NMultiRouter


The router broker.

ArrayObject
   |
   --NCollection
      |
      --NArrayList
         |
         --NMultiRouter

Implements interfaces:

Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/Routers/MultiRouter.php (line 35)
Public Method Summary
NMultiRouter
string|NULL
constructUrl (NPresenterRequest $appRequest, $httpRequest)
Constructs absolute URL from NPresenterRequest object.
NPresenterRequest|NULL
match ($httpRequest)
Maps HTTP request to a NPresenterRequest object.
Methods Inherited From NArrayList
indexOf(), insertAt(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), remove()
Methods Inherited From NCollection
__construct(), append(), beforeAdd(), clear(), contains(), exchangeArray(), freeze(), getClass(), getItemType(), getIterator(), import(), isFrozen(), isReadOnly(), remove(), search(), setArray(), setReadOnly(), updating(), __call(), __callStatic(), __clone(), __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

Method Details

line 42

__construct

public NMultiRouter __construct ()

Output
NMultiRouter  

line 73

constructUrl

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

Constructs absolute URL from NPresenterRequest object.

Implementation of:

Input
NPresenterRequest $appRequest
$httpRequest
Output
string|NULL  

line 54

match

public NPresenterRequest|NULL match ($httpRequest)

Maps HTTP request to a NPresenterRequest object.

Implementation of:

Input
$httpRequest
Output
NPresenterRequest|NULL