Class Horde_Routes_Utils
Utility functions for use in templates and controllers
public
|
|
public
|
|
public
mixed
|
#
redirectTo( mixed $first = array(), mixed $second = array() )
Issues a redirect based on the arguments. |
public
|
#
printRoutes( stream|null $stream = null, string|null $eol = PHP_EOL )
Pretty-print a listing of the routes connected to the mapper. |
public static
array
|
#
controllerScan( string $dirname = null, string $prefix = '' )
Scan a directory for PHP files and use them as controllers. Used as the default scanner callback for Horde_Routes_Mapper. See the constructor of that class for more information. |
public static
|
|
public static
integer
|
#
longestFirst( string $fst, string $lst )
Callback used by usort() in controllerScan() to sort controller names by the longest first. |
public static
|
public
|
$mapper
|
|
public
array
|
$mapperDict
Match data from last match; implements for urlFor() route memory |
#
array()
|
public
callable
|
$redirect
Callback function used for redirectTo() |