Horde_Controller_UrlWriter
in package
URL generation utility for controllers
Tags
Table of Contents
- $_defaults : array<string|int, mixed>
- Defaults to merge into route parameters when not using named routes.
- $_utils : Horde_Routes_Util
- __construct() : mixed
- Class constructor
- urlFor() : string
- Generate a URL. Same signature as Horde_Routes_Utils->urlFor().
- _serializeToParams() : mixed
- Serialize any objects in the collection supporting toParam() before passing the collection to Horde_Routes.
Properties
$_defaults
Defaults to merge into route parameters when not using named routes.
protected
array<string|int, mixed>
$_defaults
$_utils
protected
Horde_Routes_Util
$_utils
Methods
__construct()
Class constructor
public
__construct(Horde_Routes_Utils $utils[, array<string|int, mixed> $defaults = array() ]) : mixed
Parameters
- $utils : Horde_Routes_Utils
-
Route utilities
- $defaults : array<string|int, mixed> = array()
-
Defaults to merge for urlFor()
Return values
mixed —urlFor()
Generate a URL. Same signature as Horde_Routes_Utils->urlFor().
public
urlFor( $first[, $second = array() ]) : string
Parameters
Return values
string —_serializeToParams()
Serialize any objects in the collection supporting toParam() before passing the collection to Horde_Routes.
protected
_serializeToParams(array<string|int, mixed> $collection) : mixed
Parameters
- $collection : array<string|int, mixed>