Class Horde_Routes_Mapper
The mapper class handles URL generation and recognition for web applications
The mapper class is built by handling associated arrays of information and passing associated arrays back to the application for it to handle and dispatch the appropriate scripts.
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
routematch( string $url )
Match a URL against one of the routes contained. It will return null if no valid match is found, otherwise a result dict (array) and a route object is returned. |
public
null|string
|
|
public
|
public
array
|
$environ
Filtered request environment with keys like SCRIPT_NAME |
#
array()
|
public
callable
|
$controllerScan
Callback function used to get array of controller names |
|
public
string
|
$directory
Path to controller directory passed to controllerScan function |
|
public
boolean
|
$alwaysScan
Call controllerScan callback before every route match? |
|
public
boolean
|
$explicit
Disable route memory and implicit defaults? |
|
public
boolean
|
$debug
Collect debug information during route match? |
#
false
|
public
boolean
|
$subDomains
Use sub-domain support? |
#
false
|
public
array
|
$subDomainsIgnore
Array of sub-domains to ignore if using sub-domain support |
#
array()
|
public
boolean
|
$appendSlash
Append trailing slash ('/') to generated routes? |
#
false
|
public
null|string
|
$prefix
Prefix to strip during matching and to append during generation |
#
null
|
public
array
|
$matchList
Array of connected routes |
#
array()
|
public
array
|
$routeNames
Array of connected named routes, indexed by name |
#
array()
|
public
array
|
$urlCache
Cache of URLs used in generate() |
#
array()
|
public
string
|
$encoding
Encoding of routes URLs (not yet supported) |
#
'utf-8'
|
public
string
|
$decodeErrors
What to do on decoding errors? 'ignore' or 'replace' |
#
'ignore'
|
public
string
|
$domainMatch
Partial regexp used to match domain part of the end of URLs to match |
#
'[^\.\/]+?\.[^\.\/]+'
|
public
array
|
$maxKeys
Array of all connected routes, indexed by the serialized array of all keys that each route could utilize. |
#
array()
|
public
array
|
$minKeys
Array of all connected routes, indexed by the serialized array of the minimum keys that each route needs. |
#
array()
|
public
|
$utils
Utility functions like urlFor() and redirectTo() for this Mapper |
|
public
Horde_Cache
|
$cache
Cache |
|
public
integer
|
$cacheLifetime
Cache lifetime for the same value of $this->matchList |
#
86400
|