Class Link (namespace Nette\Application)
Lazy encapsulation of PresenterComponent::link().
Do not instantiate directly, use PresenterComponent::lazyLink()
Object | --Link
Public Method Summary | |
---|---|
Link |
__construct
(PresenterComponent $component, string $destination, $params)
Link specification.
|
string |
Returns link destination.
|
mixed |
getParam
(string $key)
Returns link parameter.
|
array |
getParams
()
Returns link parameters.
|
Link |
setParam
(string $key, mixed $value)
Changes link parameter.
|
string |
__toString
()
Converts link to URL.
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 52 __constructpublic Link __construct (PresenterComponent $component, string $destination, $params) Link specification.
|
||||||||||||||||||
line 65 getDestinationpublic string getDestination () Returns link destination.
|
||||||||||||||||||
line 91 getParampublic mixed getParam (string $key) Returns link parameter.
|
||||||||||||||||||
line 102 getParamspublic array getParams () Returns link parameters.
|
||||||||||||||||||
line 78 setParampublic Link setParam (string $key, mixed $value) Changes link parameter.
|
||||||||||||||||||
line 113 __toStringpublic string __toString () Converts link to URL.
|