summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-17 09:01:54 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-12-17 09:02:13 +0100
commit867cb7dbf960dc0cfbf7e59d656d1337bb59c526 (patch)
tree5bbdf1eef51cd3747f55ef2c524364f9cd3bf029 /vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php
parenta813b535eeb517e0ccd69a90d0058756014a1e01 (diff)
update picofeed, fix #695
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php')
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php29
1 files changed, 24 insertions, 5 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php b/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php
index 77a6f0c97..b8edbd6f8 100644
--- a/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php
+++ b/vendor/fguillot/picofeed/lib/PicoFeed/Parser/Feed.php
@@ -48,7 +48,15 @@ class Feed
* @access public
* @var string
*/
- public $url = '';
+ public $feed_url = '';
+
+ /**
+ * Site url
+ *
+ * @access public
+ * @var string
+ */
+ public $site_url = '';
/**
* Feed date
@@ -84,7 +92,7 @@ class Feed
{
$output = '';
- foreach (array('id', 'title', 'url', 'date', 'language', 'description', 'logo') as $property) {
+ foreach (array('id', 'title', 'feed_url', 'site_url', 'date', 'language', 'description', 'logo') as $property) {
$output .= 'Feed::'.$property.' = '.$this->$property.PHP_EOL;
}
@@ -132,14 +140,25 @@ class Feed
}
/**
- * Get url
+ * Get feed url
+ *
+ * @access public
+ * $return string
+ */
+ public function getFeedUrl()
+ {
+ return $this->feed_url;
+ }
+
+ /**
+ * Get site url
*
* @access public
* $return string
*/
- public function getUrl()
+ public function getSiteUrl()
{
- return $this->url;
+ return $this->site_url;
}
/**