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(string $appName, string $file, array $args = []): string; /** * Returns the link to an image, like linkTo but only with prepending img/ * @param string $appName the name of the app * @param string $file the name of the file * @return string the url * @throws \RuntimeException If the image does not exist * @since 6.0.0 */ public function imagePath(string $appName, string $file): string; /** * Makes an URL absolute * @param string $url the url in the ownCloud host * @return string the absolute version of the url * @since 6.0.0 */ public function getAbsoluteURL(string $url): string; /** * @param string $key * @return string url to the online documentation * @since 8.0.0 */ public function linkToDocs(string $key): string; /** * Returns the URL of the default page based on the system configuration * and the apps visible for the current user * @return string * @since 23.0.0 */ public function linkToDefaultPageUrl(): string; /** * @return string base url of the current request * @since 13.0.0 */ public function getBaseUrl(): string; /** * @return string webroot part of the base url * @since 23.0.0 */ public function getWebroot(): string; }