summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php')
m---------vendor/fguillot/picofeed0
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php219
2 files changed, 0 insertions, 219 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/Feed.php b/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php
deleted file mode 100644
index 99fc27e8e..000000000
--- a/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php
+++ /dev/null
@@ -1,219 +0,0 @@
-<?php
-
-namespace PicoFeed\Parser;
-
-/**
- * Feed
- *
- * @author Frederic Guillot
- * @package Parser
- */
-class Feed
-{
- /**
- * Feed items
- *
- * @access public
- * @var array
- */
- public $items = array();
-
- /**
- * Feed id
- *
- * @access public
- * @var string
- */
- public $id = '';
-
- /**
- * Feed title
- *
- * @access public
- * @var string
- */
- public $title = '';
-
- /**
- * Feed description
- *
- * @access public
- * @var string
- */
- public $description = '';
-
- /**
- * Feed url
- *
- * @access public
- * @var string
- */
- public $feed_url = '';
-
- /**
- * Site url
- *
- * @access public
- * @var string
- */
- public $site_url = '';
-
- /**
- * Feed date
- *
- * @access public
- * @var integer
- */
- public $date = 0;
-
- /**
- * Feed language
- *
- * @access public
- * @var string
- */
- public $language = '';
-
- /**
- * Feed logo URL (not the same as icon)
- *
- * @access public
- * @var string
- */
- public $logo = '';
-
- /**
- * Return feed information
- *
- * @access public
- * $return string
- */
- public function __toString()
- {
- $output = '';
-
- foreach (array('id', 'title', 'feed_url', 'site_url', 'date', 'language', 'description', 'logo') as $property) {
- $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) {
- $output .= '----'.PHP_EOL;
- $output .= $item;
- }
-
- return $output;
- }
-
- /**
- * Get title
- *
- * @access public
- * $return string
- */
- public function getTitle()
- {
- return $this->title;
- }
-
- /**
- * Get description
- *
- * @access public
- * $return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Get the logo url
- *
- * @access public
- * $return string
- */
- public function getLogo()
- {
- return $this->logo;
- }
-
- /**
- * Get feed url
- *
- * @access public
- * $return string
- */
- public function getFeedUrl()
- {
- return $this->feed_url;
- }
-
- /**
- * Get site url
- *
- * @access public
- * $return string
- */
- public function getSiteUrl()
- {
- return $this->site_url;
- }
-
- /**
- * Get date
- *
- * @access public
- * $return integer
- */
- public function getDate()
- {
- return $this->date;
- }
-
- /**
- * Get language
- *
- * @access public
- * $return string
- */
- public function getLanguage()
- {
- return $this->language;
- }
-
- /**
- * Get id
- *
- * @access public
- * $return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Get feed items
- *
- * @access public
- * $return array
- */
- public function getItems()
- {
- return $this->items;
- }
-
- /**
- * Return true if the feed is "Right to Left"
- *
- * @access public
- * @return bool
- */
- public function isRTL()
- {
- return Parser::isLanguageRTL($this->language);
- }
-}