abstract class AbstractUriElement
Any HTML element that can link to an URI.
| protected DOMElement | $node | ||
| protected string | $method | ||
| protected string | $currentUri |
| __construct(DOMElement $node, string $currentUri, string|null $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. | |
| 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. |
| DOMElement | $node | A \DOMElement instance |
| string | $currentUri | The URI of the page where the link is embedded (or the base href) |
| string|null | $method | The method to use for the link (GET by default) |
| InvalidArgumentException | if the node is not a link |
Gets the node associated with this link.
| DOMElement | A \DOMElement instance |
Gets the method associated with this link.
| string | The method |
Gets the URI associated with this link.
| string | The URI |
Returns raw URI data.
| string |
Returns the canonicalized URI path (see RFC 3986, section 5.2.4).
| string | $path | URI path |
| string |
Sets current \DOMElement instance.
| DOMElement | $node | A \DOMElement instance |
| LogicException | If given node is not an anchor |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DomCrawler/AbstractUriElement.html