summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-18 16:03:37 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-18 16:03:37 +0200
commiteb62e7cc275eef590dded9602e25051b11009364 (patch)
tree6cab24a572569e46697c93beb6d1ed8508c90475 /lib/public
parent8cb0d97b1099561d7f9a059f3ba8105a2c719aab (diff)
downloadnextcloud-server-eb62e7cc275eef590dded9602e25051b11009364.tar.gz
nextcloud-server-eb62e7cc275eef590dded9602e25051b11009364.zip
IUrlGenerator - document linkTo properly
* parameter $args was there since 6.0.0 * see 61a9098b7d88656d0297a18c1b7685c04d1c64dc
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/iurlgenerator.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/iurlgenerator.php b/lib/public/iurlgenerator.php
index 4324a4b5a97..3be27d87fa1 100644
--- a/lib/public/iurlgenerator.php
+++ b/lib/public/iurlgenerator.php
@@ -59,10 +59,12 @@ interface IURLGenerator {
* Returns an URL for an image or file
* @param string $appName the name of the app
* @param string $file the name of the file
+ * @param array $args array with param=>value, will be appended to the returned url
+ * The value of $args will be urlencoded
* @return string the url
* @since 6.0.0
*/
- public function linkTo($appName, $file);
+ public function linkTo($appName, $file, $args = array());
/**
* Returns the link to an image, like linkTo but only with prepending img/