[bridges] Rename 'parseRSSItem' to 'parseItem'
This commit is contained in:
parent
39788485ea
commit
878db6f96e
5 changed files with 5 additions and 5 deletions
|
@ -13,7 +13,7 @@ class AcrimedBridge extends RssExpander{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function parseRSSItem($newsItem) {
|
protected function parseItem($newsItem) {
|
||||||
|
|
||||||
$hs = new HTMLSanitizer();
|
$hs = new HTMLSanitizer();
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ class FeedExpanderExampleBridge extends RssExpander {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function parseRSSItem($newsItem) {
|
protected function parseItem($newsItem) {
|
||||||
switch($this->getInput('version')){
|
switch($this->getInput('version')){
|
||||||
case 'rss_0_9_1':
|
case 'rss_0_9_1':
|
||||||
return $this->parseRSS_0_9_1_Item($newsItem);
|
return $this->parseRSS_0_9_1_Item($newsItem);
|
||||||
|
|
|
@ -11,7 +11,7 @@ class FreenewsBridge extends RssExpander {
|
||||||
parent::collectExpandableDatas(FREENEWS_RSS);
|
parent::collectExpandableDatas(FREENEWS_RSS);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function parseRSSItem($newsItem) {
|
protected function parseItem($newsItem) {
|
||||||
$item = array();
|
$item = array();
|
||||||
$item['title'] = trim($newsItem->title);
|
$item['title'] = trim($newsItem->title);
|
||||||
$this->debugMessage("item has for title \"".$item['title']."\"");
|
$this->debugMessage("item has for title \"".$item['title']."\"");
|
||||||
|
|
|
@ -11,7 +11,7 @@ class Les400CulsBridge extends RssExpander{
|
||||||
$this->collectExpandableDatas(self::URI.'feeds/');
|
$this->collectExpandableDatas(self::URI.'feeds/');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function parseRSSItem($newsItem) {
|
protected function parseItem($newsItem) {
|
||||||
$item = array();
|
$item = array();
|
||||||
$item['title'] = trim((string) $newsItem->title);
|
$item['title'] = trim((string) $newsItem->title);
|
||||||
$this->debugMessage("browsing item ".var_export($newsItem, true));
|
$this->debugMessage("browsing item ".var_export($newsItem, true));
|
||||||
|
|
|
@ -10,7 +10,7 @@ class TheOatmealBridge extends RssExpander{
|
||||||
$this->collectExpandableDatas('http://feeds.feedburner.com/oatmealfeed');
|
$this->collectExpandableDatas('http://feeds.feedburner.com/oatmealfeed');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function parseRSSItem($newsItem) {
|
protected function parseItem($newsItem) {
|
||||||
$item = $this->parseRSS_1_0_Item($newsItem);
|
$item = $this->parseRSS_1_0_Item($newsItem);
|
||||||
|
|
||||||
$articlePage = $this->get_cached($item['uri']);
|
$articlePage = $this->get_cached($item['uri']);
|
||||||
|
|
Loading…
Reference in a new issue