summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/lib/PicoFeed/Client/Url.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/Client/Url.php
parenta813b535eeb517e0ccd69a90d0058756014a1e01 (diff)
update picofeed, fix #695
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Client/Url.php')
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Client/Url.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Client/Url.php b/vendor/fguillot/picofeed/lib/PicoFeed/Client/Url.php
index 90d7fb6f7..a74c23508 100644
--- a/vendor/fguillot/picofeed/lib/PicoFeed/Client/Url.php
+++ b/vendor/fguillot/picofeed/lib/PicoFeed/Client/Url.php
@@ -80,6 +80,20 @@ class Url
}
/**
+ * Shortcut method to get a base url
+ *
+ * @static
+ * @access public
+ * @param string $url
+ * @return string
+ */
+ public static function base($url)
+ {
+ $link = new Url($url);
+ return $link->getBaseUrl();
+ }
+
+ /**
* Get the base URL
*
* @access public