From 5697f7c92cbc7b2c23d2a8c6ba3d904734dd0739 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 22 Dec 2014 09:16:08 +0100 Subject: udpate picofeed --- vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php') diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php b/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php index b8edbd6f8..99fc27e8e 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php @@ -96,6 +96,7 @@ class Feed $output .= 'Feed::'.$property.' = '.$this->$property.PHP_EOL; } + $output .= 'Feed::isRTL() = '.($this->isRTL() ? 'true' : 'false').PHP_EOL; $output .= 'Feed::items = '.count($this->items).' items'.PHP_EOL; foreach ($this->items as $item) { @@ -204,4 +205,15 @@ class Feed { return $this->items; } + + /** + * Return true if the feed is "Right to Left" + * + * @access public + * @return bool + */ + public function isRTL() + { + return Parser::isLanguageRTL($this->language); + } } -- cgit v1.2.3