namespace Nette\Application
Class Link
Lazy encapsulation of PresenterComponent::link(). Do not instantiate directly, use PresenterComponent::lazyLink()
- Nette\Object
-
Nette\Application\Link
public
|
#
__construct(
PresenterComponent
$component,
string
$destination,
array
$params
)
Link specification. Link specification. Parameters$component PresenterComponent$destination string$params array |
public
string
|
#
getDestination(
)
Returns link destination. Returns link destination. |
public
Link
|
#
setParam(
string
$key,
mixed
$value
)
Changes link parameter. Changes link parameter. Parameters$key string$value mixedReturnsLink provides a fluent interface
|
public
mixed
|
#
getParam(
string
$key
)
Returns link parameter. Returns link parameter. Parameters$key string |
public
array
|
#
getParams(
)
Returns link parameters. Returns link parameters. |
public
string
|
#
__toString(
)
Converts link to URL. Converts link to URL. |