class Link

Link represents an HTML link (an HTML a, area or link tag).

Methods

__construct(DOMElement $node, string $currentUri, string $method = 'GET')

Constructor.

getNode()

Gets the node associated with this link.

string
getMethod()

Gets the method associated with this link.

string
getUri()

Gets the URI associated with this link.

Details

at line line 45
__construct(DOMElement $node, string $currentUri, string $method = 'GET')

Constructor.

Parameters

DOMElement $node A \DOMElement instance
string $currentUri The URI of the page where the link is embedded (or the base href)
string $method The method to use for the link (get by default)

Exceptions

InvalidArgumentException if the node is not a link

at line line 61
DOMElement getNode()

Gets the node associated with this link.

Return Value

DOMElement A \DOMElement instance

at line line 71
string getMethod()

Gets the method associated with this link.

Return Value

string The method

at line line 81
string getUri()

Gets the URI associated with this link.

Return Value

string The URI