class Image extends AbstractUriElement

Image represents an HTML image (an HTML img tag).

Properties

protected DOMElement $node from AbstractUriElement
protected string $method from AbstractUriElement
protected string $currentUri from AbstractUriElement

Methods

__construct(DOMElement $node, string $currentUri = null)

No description

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.

string
getRawUri()

Returns raw URI data.

string
canonicalizePath(string $path)

Returns the canonicalized URI path (see RFC 3986, section 5.2.4).

setNode(DOMElement $node)

Sets current \DOMElement instance.

Details

at line 19
__construct(DOMElement $node, string $currentUri = null)

Parameters

DOMElement $node A \DOMElement instance
string $currentUri The URI of the page where the link is embedded (or the base href)

Exceptions

InvalidArgumentException if the node is not a link

in AbstractUriElement at line 61
DOMElement getNode()

Gets the node associated with this link.

Return Value

DOMElement A \DOMElement instance

in AbstractUriElement at line 71
string getMethod()

Gets the method associated with this link.

Return Value

string The method

in AbstractUriElement at line 81
string getUri()

Gets the URI associated with this link.

Return Value

string The URI

at line 24
protected string getRawUri()

Returns raw URI data.

Return Value

string

in AbstractUriElement at line 139
protected string canonicalizePath(string $path)

Returns the canonicalized URI path (see RFC 3986, section 5.2.4).

Parameters

string $path URI path

Return Value

string

at line 29
protected setNode(DOMElement $node)

Sets current \DOMElement instance.

Parameters

DOMElement $node A \DOMElement instance

Exceptions

LogicException If given node is not an anchor