@@ -132,6 +132,7 @@ class OC_Helper {
132
132
* @return
133
133
* @internal param array $args with param=>value, will be appended to the returned url
134
134
* @return string the url
135
+ * @deprecated Use \OC::$server->getURLGenerator()->linkToRoute($route, $parameters)
135
136
*
136
137
* Returns a url to the given app and file.
137
138
*/
@@ -146,6 +147,7 @@ public static function linkToRoute($route, $parameters = array()) {
146
147
* @param array $args array with param=>value, will be appended to the returned url
147
148
* The value of $args will be urlencoded
148
149
* @return string the url
150
+ * @deprecated Use \OC::$server->getURLGenerator()->linkTo($app, $file, $args)
149
151
*
150
152
* Returns a url to the given app and file.
151
153
*/
@@ -156,6 +158,7 @@ public static function linkTo( $app, $file, $args = array() ) {
156
158
/**
157
159
* @param string $key
158
160
* @return string url to the online documentation
161
+ * @deprecated Use \OC::$server->getURLGenerator()->linkToDocs($key)
159
162
*/
160
163
public static function linkToDocs ($ key ) {
161
164
return OC ::$ server ->getURLGenerator ()->linkToDocs ($ key );
@@ -181,6 +184,7 @@ public static function linkToAbsolute($app, $file, $args = array()) {
181
184
* Makes an $url absolute
182
185
* @param string $url the url
183
186
* @return string the absolute url
187
+ * @deprecated Use \OC::$server->getURLGenerator()->getAbsoluteURL($url)
184
188
*
185
189
* Returns a absolute url to the given app and file.
186
190
*/
@@ -236,6 +240,7 @@ public static function linkToPublic($service, $add_slash = false) {
236
240
* @param string $app app
237
241
* @param string $image image name
238
242
* @return string the url
243
+ * @deprecated Use \OC::$server->getURLGenerator()->imagePath($app, $image)
239
244
*
240
245
* Returns the path to the image.
241
246
*/
0 commit comments