1 | <?php |
||
16 | class Html |
||
17 | { |
||
18 | /** |
||
19 | * @var DOMDocument |
||
20 | */ |
||
21 | private $document; |
||
22 | |||
23 | /** |
||
24 | * @var DOMXPath |
||
25 | */ |
||
26 | private $xpath; |
||
27 | |||
28 | /** |
||
29 | * @param string $html |
||
30 | */ |
||
31 | 1 | public function __construct($html) |
|
37 | |||
38 | /** |
||
39 | * @param string $attribute |
||
40 | * @param UriInterface $base |
||
41 | */ |
||
42 | private function resolveLinkAttribute($attribute, UriInterface $base) |
||
57 | |||
58 | /** |
||
59 | * Add a prefix to all relative links (src, href and action) |
||
60 | * |
||
61 | * @param UriInterface $base |
||
62 | */ |
||
63 | 1 | public function resolveLinks(UriInterface $base) |
|
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | public function get() |
||
79 | } |
||
80 |