diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-27 09:29:09 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-27 09:29:09 +0100 |
commit | 73f65c8fbadbdd2098448e77b6d3f0464ad8613e (patch) | |
tree | f22ba63a222fb4f7d05427b661f3c008170047fd /vendor/fguillot/picofeed/lib/PicoFeed/Parser/Rss10.php | |
parent | be37aed9f5d923fe16e264c6ffc97db08503b791 (diff) |
update picofeed
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Parser/Rss10.php')
m--------- | vendor/fguillot/picofeed | 0 | ||||
-rw-r--r-- | vendor/fguillot/picofeed/lib/PicoFeed/Parser/Rss10.php | 77 |
2 files changed, 0 insertions, 77 deletions
diff --git a/vendor/fguillot/picofeed b/vendor/fguillot/picofeed new file mode 160000 +Subproject 0a1d0d3950f7f047dc8fb1d80aa6296e15f306d diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Rss10.php b/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Rss10.php deleted file mode 100644 index 2e763fb45..000000000 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Rss10.php +++ /dev/null @@ -1,77 +0,0 @@ -<?php - -namespace PicoFeed\Parser; - -use SimpleXMLElement; - -/** - * RSS 1.0 parser - * - * @author Frederic Guillot - * @package Parser - */ -class Rss10 extends Rss20 -{ - /** - * Get the path to the items XML tree - * - * @access public - * @param SimpleXMLElement $xml Feed xml - * @return SimpleXMLElement - */ - public function getItemsTree(SimpleXMLElement $xml) - { - return $xml->item; - } - - /** - * Find the feed date - * - * @access public - * @param SimpleXMLElement $xml Feed xml - * @param \PicoFeed\Parser\Feed $feed Feed object - */ - public function findFeedDate(SimpleXMLElement $xml, Feed $feed) - { - $feed->date = $this->parseDate(XmlParser::getNamespaceValue($xml->channel, $this->namespaces, 'date')); - } - - /** - * Find the feed language - * - * @access public - * @param SimpleXMLElement $xml Feed xml - * @param \PicoFeed\Parser\Feed $feed Feed object - */ - public function findFeedLanguage(SimpleXMLElement $xml, Feed $feed) - { - $feed->language = XmlParser::getNamespaceValue($xml->channel, $this->namespaces, 'language'); - } - - /** - * Genereate the item id - * - * @access public - * @param SimpleXMLElement $entry Feed item - * @param \PicoFeed\Parser\Item $item Item object - * @param \PicoFeed\Parser\Feed $feed Feed object - */ - public function findItemId(SimpleXMLElement $entry, Item $item, Feed $feed) - { - $item->id = $this->generateId( - $item->getTitle(), $item->getUrl(), $item->getContent() - ); - } - - /** - * Find the item enclosure - * - * @access public - * @param SimpleXMLElement $entry Feed item - * @param \PicoFeed\Parser\Item $item Item object - * @param \PicoFeed\Parser\Feed $feed Feed object - */ - public function findItemEnclosure(SimpleXMLElement $entry, Item $item, Feed $feed) - { - } -} |