aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/apphelper.php (renamed from lib/apphelper.php)0
-rw-r--r--lib/private/l10n/factory.php (renamed from lib/l10n/factory.php)2
-rw-r--r--lib/private/urlgenerator.php (renamed from lib/urlgenerator.php)18
3 files changed, 10 insertions, 10 deletions
diff --git a/lib/apphelper.php b/lib/private/apphelper.php
index bd02f3aabfa..bd02f3aabfa 100644
--- a/lib/apphelper.php
+++ b/lib/private/apphelper.php
diff --git a/lib/l10n/factory.php b/lib/private/l10n/factory.php
index ba168872acd..8c65f368171 100644
--- a/lib/l10n/factory.php
+++ b/lib/private/l10n/factory.php
@@ -22,7 +22,7 @@ class Factory {
* get an L10N instance
* @param $app string
* @param $lang string|null
- * @return OC_L10N
+ * @return \OC_L10N
*/
public function get($app) {
if (!isset($this->instances[$app])) {
diff --git a/lib/urlgenerator.php b/lib/private/urlgenerator.php
index 1db4c36cc58..5c1d9d825b6 100644
--- a/lib/urlgenerator.php
+++ b/lib/private/urlgenerator.php
@@ -8,18 +8,20 @@
*/
namespace OC;
+use OCP\IURLGenerator;
+use RuntimeException;
/**
* Class to generate URLs
*/
-class URLGenerator {
+class URLGenerator implements IURLGenerator {
/**
* @brief Creates an url using a defined route
* @param $route
* @param array $parameters
* @return
* @internal param array $args with param=>value, will be appended to the returned url
- * @returns the url
+ * @returns string the url
*
* Returns a url to the given app and file.
*/
@@ -97,15 +99,13 @@ class URLGenerator {
}
}
+
/**
- * @brief Makes an $url absolute
- * @param string $url the url
- * @return string the absolute url
- *
- * Returns a absolute url to the given app and file.
+ * Makes an URL absolute
+ * @param string $url the url in the owncloud host
+ * @return string the absolute version of the url
*/
- public function makeURLAbsolute($url) {
+ public function getAbsoluteURL($url) {
return \OC_Request::serverProtocol() . '://' . \OC_Request::serverHost() . $url;
}
-
}