AbstractUriElement

class AbstractUriElement

Any HTML element that can link to an URI.

Methods

__construct(DOMElement $node, string $currentUri, string $method = 'GET')
DOMElement 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

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

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

DOMElement getNode()

Gets the node associated with this link.

Return Value

DOMElement A \DOMElement instance

string getMethod()

Gets the method associated with this link.

Return Value

string The method

string getUri()

Gets the URI associated with this link.

Return Value

string The URI
doc_Symfony
2016-10-28 06:04:31
Comments
Leave a Comment

Please login to continue.