@@ -31,7 +31,6 @@ |
||
31 | 31 | |
32 | 32 | use Callingallpapers\Parser\JoindinCfpParser; |
33 | 33 | use Callingallpapers\Parser\Lanyrd\LanyrdCfpParser; |
34 | -use Callingallpapers\Parser\PapercallIoParser; |
|
35 | 34 | use Callingallpapers\Parser\PapercallIoParserFactory; |
36 | 35 | use Callingallpapers\Service\TimezoneService; |
37 | 36 | use Callingallpapers\Writer\ApiCfpWriter; |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class Description |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $result = $xpath->query('//div[contains(@class, "description")]'); |
@@ -150,6 +150,9 @@ |
||
150 | 150 | return [$location->lat, $location->lon]; |
151 | 151 | } |
152 | 152 | |
153 | + /** |
|
154 | + * @param \DOMXPath $xpath |
|
155 | + */ |
|
153 | 156 | public function getEventPage($xpath) |
154 | 157 | { |
155 | 158 | $confPath = $xpath->query("//h3/a[contains(@class, 'summary')]"); |
@@ -38,6 +38,10 @@ |
||
38 | 38 | $this->timezone = new \DateTimezone($timezone); |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param \DOMDocument $dom |
|
43 | + * @param \DOMXPath $xpath |
|
44 | + */ |
|
41 | 45 | public function parse($dom, $xpath) |
42 | 46 | { |
43 | 47 | $endDate = $xpath->query("//div[contains(@class, 'vevent')]/*/abbr[contains(@class, 'dtend')]"); ///a/abbr[class='dtstart'] |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class EventName |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $confPath = $xpath->query("//h3/a[contains(@class, 'summary')]"); |
@@ -38,6 +38,10 @@ |
||
38 | 38 | $this->timezone = new \DateTimezone($timezone); |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param \DOMDocument $dom |
|
43 | + * @param \DOMXPath $xpath |
|
44 | + */ |
|
41 | 45 | public function parse($dom, $xpath) |
42 | 46 | { |
43 | 47 | $startDate = $xpath->query("//div[contains(@class, 'vevent')]/*/abbr[contains(@class, 'dtstart')]"); ///a/abbr[class='dtstart'] |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class EventUri |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $uriPath = $xpath->query("//a[contains(@title, 'visit their website')]"); |
@@ -30,7 +30,6 @@ |
||
30 | 30 | namespace Callingallpapers\Parser\Lanyrd; |
31 | 31 | |
32 | 32 | use Callingallpapers\Entity\Cfp; |
33 | -use Callingallpapers\Parser\Lanyrd\LanyrdEntryParser; |
|
34 | 33 | use Callingallpapers\Parser\ParserInterface; |
35 | 34 | use Callingallpapers\Service\TimezoneService; |
36 | 35 | use Callingallpapers\Writer\WriterInterface; |
@@ -32,6 +32,10 @@ |
||
32 | 32 | class Location |
33 | 33 | { |
34 | 34 | |
35 | + /** |
|
36 | + * @param \DOMDocument $dom |
|
37 | + * @param \DOMXPath $xpath |
|
38 | + */ |
|
35 | 39 | public function parse($dom, $xpath) |
36 | 40 | { |
37 | 41 | $locations = $xpath->query("//div[contains(@class, 'vevent')]/p[contains(@class, 'location')]/a"); ///a/abbr[class='dtstart'] |