final class Link

Lazy encapsulation of Component::link().

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

Methods

__construct(Component $component, string $destination, array $params = [])

Link specification.

getComponent()

Returns link component.

string
getDestination()

Returns link destination.

setParameter(string $key, mixed $value)

Changes link parameter.

mixed
getParameter(string $key)

Returns link parameter.

array
getParameters()

Returns link parameters.

bool
isLinkCurrent()

Determines whether this links to the current page.

string
__toString()

Converts link to URL.

Details

at line 27
__construct(Component $component, string $destination, array $params = [])

Link specification.

Parameters

Component $component
string $destination
array $params

at line 38
Component getComponent()

Returns link component.

Return Value

Component

at line 47
string getDestination()

Returns link destination.

Return Value

string

at line 56
Link setParameter(string $key, mixed $value)

Changes link parameter.

Parameters

string $key
mixed $value

Return Value

Link

at line 66
mixed getParameter(string $key)

Returns link parameter.

Parameters

string $key

Return Value

mixed

at line 75
array getParameters()

Returns link parameters.

Return Value

array

at line 84
bool isLinkCurrent()

Determines whether this links to the current page.

Return Value

bool

at line 93
string __toString()

Converts link to URL.

Return Value

string