\Horde_Controller_UrlWriter

URL generation utility for controllers

Summary

Methods
Properties
Constants
__construct()
urlFor()
No public properties found
No constants found
_serializeToParams()
$_defaults
$_utils
N/A
No private methods found
No private properties found
N/A

Properties

$_defaults

$_defaults : array

Defaults to merge into route parameters when not using named routes.

Type

array

$_utils

$_utils : \Horde_Routes_Util

Type

\Horde_Routes_Util

Methods

__construct()

__construct(\Horde_Routes_Utils  $utils, array  $defaults = array()) 

Class constructor

Parameters

\Horde_Routes_Utils $utils

Route utilities

array $defaults

Defaults to merge for urlFor()

urlFor()

urlFor(  $first,   $second = array()) : string

Generate a URL. Same signature as Horde_Routes_Utils->urlFor().

Parameters

$first

mixed

$second

mixed

Returns

string

_serializeToParams()

_serializeToParams(array  $collection) 

Serialize any objects in the collection supporting toParam() before passing the collection to Horde_Routes.

Parameters

array $collection