1 | <?php |
||
9 | class HtmlPageParser |
||
10 | { |
||
11 | /** |
||
12 | * @param \Katapoka\Ahgora\Contracts\IHttpResponse $punchsPageResponse |
||
13 | * |
||
14 | * @return mixed |
||
15 | */ |
||
16 | public function getPunchsTableHtml(IHttpResponse $punchsPageResponse) |
||
23 | |||
24 | /** |
||
25 | * Get the punch's rows in array format. |
||
26 | * |
||
27 | * @param IHttpResponse $punchsPageResponse |
||
28 | * |
||
29 | * @return array |
||
30 | */ |
||
31 | public function getPunchsRows(IHttpResponse $punchsPageResponse) |
||
51 | |||
52 | /** |
||
53 | * Parse the punch row and return its values. |
||
54 | * |
||
55 | * @param \DOMElement $row |
||
56 | * |
||
57 | * @return array|bool |
||
58 | */ |
||
59 | private function parsePunchRow(DOMElement $row) { |
||
70 | |||
71 | /** |
||
72 | * Get both tables and return the strings into an array with the properties 'summary' and 'punchs'. |
||
73 | * |
||
74 | * @param IHttpResponse $punchsPageResponse |
||
75 | * |
||
76 | * @return array |
||
77 | */ |
||
78 | private function getPageTables(IHttpResponse $punchsPageResponse) |
||
91 | } |
||
92 |