Class Link (namespace Nette\Application)


Lazy encapsulation of PresenterComponent::link().

Do not instantiate directly, use PresenterComponent::lazyLink()

Object
   |
   --Link
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/Link.php (line 35)
Public Method Summary
Link
__construct (PresenterComponent $component, string $destination, $args)
Link specification.
string
Returns link destination.
mixed
getParam (string $key)
Returns link parameter.
void
setParam (string $key, mixed $value)
Changes link parameter.
string
Converts link to URL.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()

Method Details

line 53

__construct

public Link __construct (PresenterComponent $component, string $destination, $args)

Link specification.

Input
PresenterComponent $component
string $destination
$args
Output
Link  

line 66

getDestination

public string getDestination ()

Returns link destination.

Output
string  

line 91

getParam

public mixed getParam (string $key)

Returns link parameter.

Input
string $key
Output
mixed  

line 79

setParam

public void setParam (string $key, mixed $value)

Changes link parameter.

Input
string $key
mixed $value
Output
void  

line 102

__toString

public string __toString ()

Converts link to URL.

Output
string