Link
final class Link
Lazy encapsulation of Component::link().
Do not instantiate directly, use Component::lazyLink()
Methods
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 17
__construct(Component $component, string $destination, array $params = [])
No description
at line 29
Component
getComponent()
Returns link component.
at line 38
string
getDestination()
Returns link destination.
at line 47
Link
setParameter(string $key, mixed $value)
Changes link parameter.
at line 57
mixed
getParameter(string $key)
Returns link parameter.
at line 67
array
getParameters()
Returns link parameters.
at line 76
bool
isLinkCurrent()
Determines whether this links to the current page.
at line 85
string
__toString()
Converts link to URL.