2019-10-31 20:55:08 +03:00
|
|
|
|
<?php
|
|
|
|
|
class YahtzeeDevDiaryBridge extends BridgeAbstract {
|
|
|
|
|
const MAINTAINER = 'somini';
|
|
|
|
|
const NAME = "Yahtzee's Dev Diary";
|
|
|
|
|
const URI = 'https://www.escapistmagazine.com/v2/yahtzees-dev-diary-completed-games-list/';
|
|
|
|
|
const DESCRIPTION = 'Yahtzee’s Dev Diary Series';
|
|
|
|
|
|
|
|
|
|
public function collectData(){
|
2022-01-02 12:36:09 +03:00
|
|
|
|
$html = getSimpleHTMLDOM($this->getURI());
|
2019-10-31 20:55:08 +03:00
|
|
|
|
|
|
|
|
|
foreach($html->find('blockquote.wp-embedded-content a') as $element) {
|
|
|
|
|
$item = array();
|
|
|
|
|
|
|
|
|
|
$item['title'] = $element->innertext;
|
|
|
|
|
$item['uri'] = $element->href;
|
|
|
|
|
|
|
|
|
|
$this->items[] = $item;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|