Little refactoring to reduce logic on index.php.

Moved RssExpander as a core logic system to lib/Bridge.php

Signed-off-by: teromene <teromene@teromene.fr>
This commit is contained in:
teromene 2015-11-05 20:26:48 +00:00 committed by Mitsukarenai
parent 80008f01f8
commit 38829e7739
9 changed files with 201 additions and 212 deletions

View file

@ -1,7 +1,7 @@
<?php
require_once 'bridges/RssExpander.php';
define("RSS_PREFIX", "http://feeds.gawker.com/");
define("RSS_SUFFIX", "/full");
class Gawker extends RssExpander{
public function loadMetadatas() {
@ -34,7 +34,7 @@ class Gawker extends RssExpander{
$param['url'] = $this->toURI(strtolower($param['site']));
}
// $this->message("loading feed from ".$this->getURI());
parent::collectData($param);
parent::collectExpandableDatas($param, $name);
}
protected function parseRSSItem($newsItem) {