Documentation

Horde_Controller_UrlWriter
in package

URL generation utility for controllers

Tags
author

Mike Naberezny mike@maintainable.com

author

Derek DeVries derek@maintainable.com

author

Chuck Hagenbuch chuck@horde.org

category

Horde

copyright

2008-2017 Horde LLC

license

http://www.horde.org/licenses/bsd BSD

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

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
$first :

mixed

$second : = array()

mixed

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>
Return values
mixed

Search results