* @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.
*/
* @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.
*/
/**
* @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);
* 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.
*/
* @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.
*/
* @param array $parameters
* @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)
*/
public static function linkToRoute( $route, $parameters = array() ) {
return \OC_Helper::linkToRoute($route, $parameters);
* @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)
*/
public static function linkTo( $app, $file, $args = array() ) {
return(\OC_Helper::linkTo( $app, $file, $args ));
* @param string $app app
* @param string $image image name
* @return string the url
+ * @deprecated Use \OC::$server->getURLGenerator()->imagePath($app, $image)
*/
public static function imagePath( $app, $image ) {
return(\OC_Helper::imagePath( $app, $image ));