| 1 | <?php |
||
| 18 | class CrawlerTools |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Return the node name |
||
| 23 | * |
||
| 24 | * @param Crawler $node |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 1 | public static function getNodeName(Crawler $node) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Return the node text contents (w/o the children). |
||
| 35 | * |
||
| 36 | * @param Crawler $node |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public static function getNodeText(Crawler $node) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Return the node HTML contents |
||
| 53 | * |
||
| 54 | * @param Crawler $node |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 1 | public static function getNodeHtml(Crawler $node) |
|
| 87 | } |
||
| 88 |