diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-04-01 14:32:49 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-04-01 14:32:49 +0200 |
commit | 288da619b12a26ad3f2e07629e2063c057f3d247 (patch) | |
tree | 77b251ec1e06ef459e56c4af16b82acd21e2e880 /lib/private/helper.php | |
parent | 0af2dc7d3775f5d40cdfd3fe0cd4325abd6ce40d (diff) | |
download | nextcloud-server-288da619b12a26ad3f2e07629e2063c057f3d247.tar.gz nextcloud-server-288da619b12a26ad3f2e07629e2063c057f3d247.zip |
Deprecate functions that only call the urlgenerator anyway
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r-- | lib/private/helper.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php index 099c6def37f..9d7e86658b6 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -132,6 +132,7 @@ class OC_Helper { * @return * @internal param array $args with param=>value, will be appended to the returned url * @return string the url + * @deprecated Use \OC::$server->getURLGenerator()->linkToRoute($route, $parameters) * * Returns a url to the given app and file. */ @@ -146,6 +147,7 @@ class OC_Helper { * @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 + * @deprecated Use \OC::$server->getURLGenerator()->linkTo($app, $file, $args) * * Returns a url to the given app and file. */ @@ -156,6 +158,7 @@ class OC_Helper { /** * @param string $key * @return string url to the online documentation + * @deprecated Use \OC::$server->getURLGenerator()->linkToDocs($key) */ public static function linkToDocs($key) { return OC::$server->getURLGenerator()->linkToDocs($key); @@ -181,6 +184,7 @@ class OC_Helper { * Makes an $url absolute * @param string $url the url * @return string the absolute url + * @deprecated Use \OC::$server->getURLGenerator()->getAbsoluteURL($url) * * Returns a absolute url to the given app and file. */ @@ -236,6 +240,7 @@ class OC_Helper { * @param string $app app * @param string $image image name * @return string the url + * @deprecated Use \OC::$server->getURLGenerator()->imagePath($app, $image) * * Returns the path to the image. */ |