Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
39be4dca
Commit
39be4dca
authored
11 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
removing all link/url related calls from API class
parent
3ea2dfa5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/private/appframework/core/api.php
+0
-63
0 additions, 63 deletions
lib/private/appframework/core/api.php
lib/public/appframework/iapi.php
+0
-45
0 additions, 45 deletions
lib/public/appframework/iapi.php
with
0 additions
and
108 deletions
lib/private/appframework/core/api.php
+
0
−
63
View file @
39be4dca
...
...
@@ -99,69 +99,6 @@ class API implements IApi{
}
/**
* Returns the URL for a route
* @param string $routeName the name of the route
* @param array $arguments an array with arguments which will be filled into the url
* @return string the url
*/
public
function
linkToRoute
(
$routeName
,
$arguments
=
array
()){
return
\OCP\Util
::
linkToRoute
(
$routeName
,
$arguments
);
}
/**
* Returns an URL for an image or file
* @param string $file the name of the file
* @param string $appName the name of the app, defaults to the current one
*/
public
function
linkTo
(
$file
,
$appName
=
null
){
if
(
$appName
===
null
){
$appName
=
$this
->
appName
;
}
return
\OCP\Util
::
linkTo
(
$appName
,
$file
);
}
/**
* Returns the link to an image, like link to but only with prepending img/
* @param string $file the name of the file
* @param string $appName the name of the app, defaults to the current one
*/
public
function
imagePath
(
$file
,
$appName
=
null
){
if
(
$appName
===
null
){
$appName
=
$this
->
appName
;
}
return
\OCP\Util
::
imagePath
(
$appName
,
$file
);
}
/**
* Makes an URL absolute
* @param string $url the url
* @return string the absolute url
*/
public
function
getAbsoluteURL
(
$url
){
# TODO: use public api
return
\OC_Helper
::
makeURLAbsolute
(
$url
);
}
/**
* links to a file
* @param string $file the name of the file
* @param string $appName the name of the app, defaults to the current one
* @deprecated replaced with linkToRoute()
* @return string the url
*/
public
function
linkToAbsolute
(
$file
,
$appName
=
null
){
if
(
$appName
===
null
){
$appName
=
$this
->
appName
;
}
return
\OCP\Util
::
linkToAbsolute
(
$appName
,
$file
);
}
/**
* Checks if an app is enabled
* @param string $appName the name of an app
...
...
This diff is collapsed.
Click to expand it.
lib/public/appframework/iapi.php
+
0
−
45
View file @
39be4dca
...
...
@@ -68,51 +68,6 @@ interface IApi {
function
add3rdPartyStyle
(
$name
);
/**
* Returns the URL for a route
* @param string $routeName the name of the route
* @param array $arguments an array with arguments which will be filled into the url
* @return string the url
*/
function
linkToRoute
(
$routeName
,
$arguments
=
array
());
/**
* Returns an URL for an image or file
* @param string $file the name of the file
* @param string $appName the name of the app, defaults to the current one
*/
function
linkTo
(
$file
,
$appName
=
null
);
/**
* Returns the link to an image, like link to but only with prepending img/
* @param string $file the name of the file
* @param string $appName the name of the app, defaults to the current one
*/
function
imagePath
(
$file
,
$appName
=
null
);
/**
* Makes an URL absolute
* @param string $url the url
* @return string the absolute url
*
* FIXME: function should live in Request / Response
*/
function
getAbsoluteURL
(
$url
);
/**
* links to a file
* @param string $file the name of the file
* @param string $appName the name of the app, defaults to the current one
* @deprecated replaced with linkToRoute()
* @return string the url
*/
function
linkToAbsolute
(
$file
,
$appName
=
null
);
/**
* Checks if an app is enabled
* @param string $appName the name of an app
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment