Class NLink


Lazy encapsulation of NPresenterComponent::link().

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

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

Method Details

line 52

__construct

public NLink __construct (NPresenterComponent $component, string $destination, $params)

NLink specification.

Input
NPresenterComponent $component
string $destination
$params
Output
NLink  

line 65

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 102

getParams

public array getParams ()

Returns link parameters.

Output
array  

line 78

setParam

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

Changes link parameter.

Input
string $key
mixed $value
Output
NLink provides a fluent interface

line 113

__toString

public string __toString ()

Converts link to URL.

Output
string