Skip to content
Snippets Groups Projects
Commit 9743f5dc authored by Alex Barth's avatar Alex Barth
Browse files

#706984 lyricnz: Add FeedsSimplePie::parseExtensions() to allow parsing to be customized.

parent 6fdd53f0
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx
---------------------------------- ----------------------------------
- #706984 lyricnz: Add FeedsSimplePie::parseExtensions() to allow parsing to be
customized.
- #728854 Scott Reynolds: Fix $queue->createItem() fails. - #728854 Scott Reynolds: Fix $queue->createItem() fails.
- #707098 alex_b: Improve performance of nodeapi and access checks. - #707098 alex_b: Improve performance of nodeapi and access checks.
- #726012 alex_b: Fix RSS descriptions not being reset in - #726012 alex_b: Fix RSS descriptions not being reset in
......
...@@ -110,14 +110,22 @@ class FeedsSimplePieParser extends FeedsParser { ...@@ -110,14 +110,22 @@ class FeedsSimplePieParser extends FeedsParser {
} }
$item['domains'] = $domains; $item['domains'] = $domains;
$item['tags'] = $tags; $item['tags'] = $tags;
// Stick the raw data onto the feed item.
// Allow parsing to be extended.
$this->parseExtensions($item, $simplepie_item);
$item['raw'] = $simplepie_item->data; $item['raw'] = $simplepie_item->data;
$batch->addItem($item); $batch->addItem($item);
} }
// Release parser. // Release parser.
unset($parser); unset($parser);
} }
/**
* Allow extension of FeedsSimplePie item parsing.
*/
protected function parseExtensions(&$item, $simplepie_item) {}
/** /**
* Return mapping sources. * Return mapping sources.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment