]> source.dussan.org Git - nextcloud-server.git/commitdiff
IUrlGenerator - document linkTo properly
authorMorris Jobke <hey@morrisjobke.de>
Sat, 18 Apr 2015 14:03:37 +0000 (16:03 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Sat, 18 Apr 2015 14:03:37 +0000 (16:03 +0200)
* parameter $args was there since 6.0.0
* see 61a9098b7d88656d0297a18c1b7685c04d1c64dc

lib/public/iurlgenerator.php

index 4324a4b5a97182a485b916307d1d14bf6d81f9bf..3be27d87fa1c38a68f77e708fbd45f6de43bd7df 100644 (file)
@@ -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/