1 | <?php |
||
17 | class Dom extends \DOMDocument |
||
18 | { |
||
19 | /** |
||
20 | * Retries a list of attributes-value which can live inside a HTML/XML-Element |
||
21 | * |
||
22 | * @param string $tag A HTML/XML tag-name representation for the HTML/XML-Element |
||
23 | * @param string $attribute A attribute inside of the HTML/XML-Element |
||
24 | * |
||
25 | * @return array |
||
26 | */ |
||
27 | public function fetchValues($tag, $attribute) |
||
39 | |||
40 | /** |
||
41 | * Grab all links in a page |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | public function getURLs() |
||
49 | |||
50 | /** |
||
51 | * Grab all URLs of an image |
||
52 | * |
||
53 | * @return array |
||
54 | */ |
||
55 | public function getImageURLs() |
||
59 | |||
60 | /** |
||
61 | * Grab all URLs of an external script file like JS |
||
62 | */ |
||
63 | public function getScriptURLs() |
||
67 | |||
68 | /** |
||
69 | * Grab all URLs location of the linked document like CSS |
||
70 | */ |
||
71 | public function getCssURLs() |
||
75 | } |
||
76 |