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')
-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;
}
/**