summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-09-08 14:43:14 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-09-08 14:43:14 +0200
commitc5b53785583eb215eb1ec889333ecf25ecb97e66 (patch)
tree142d208a6260ccba4c1996fe76751e16cde9117a /lib/public
parent637cff68ac2944d6029eb015640bbbd0e686641b (diff)
downloadnextcloud-server-c5b53785583eb215eb1ec889333ecf25ecb97e66.tar.gz
nextcloud-server-c5b53785583eb215eb1ec889333ecf25ecb97e66.zip
Add a method to get the absolute url for a route
Fix #10926
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/iurlgenerator.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/iurlgenerator.php b/lib/public/iurlgenerator.php
index afdf1b6f299..dbbd8a3bb63 100644
--- a/lib/public/iurlgenerator.php
+++ b/lib/public/iurlgenerator.php
@@ -43,6 +43,14 @@ interface IURLGenerator {
public function linkToRoute($routeName, $arguments = array());
/**
+ * Returns the absolute URL for a route
+ * @param string $routeName the name of the route
+ * @param array $arguments an array with arguments which will be filled into the url
+ * @return string the absolute url
+ */
+ public function linkToRouteAbsolute($routeName, $arguments = array());
+
+ /**
* Returns an URL for an image or file
* @param string $appName the name of the app
* @param string $file the name of the file