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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
c3286402
Commit
c3286402
authored
11 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
removing log(), getTemplate(), getLocalFilePath(), getUrlContent(), getFileInfo()
parent
39be4dca
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/private/appframework/core/api.php
+0
-81
0 additions, 81 deletions
lib/private/appframework/core/api.php
lib/public/appframework/iapi.php
+0
-20
0 additions, 20 deletions
lib/public/appframework/iapi.php
with
0 additions
and
101 deletions
lib/private/appframework/core/api.php
+
0
−
81
View file @
c3286402
...
...
@@ -109,44 +109,6 @@ class API implements IApi{
}
/**
* Writes a function into the error log
* @param string $msg the error message to be logged
* @param int $level the error level
*/
public
function
log
(
$msg
,
$level
=
null
){
switch
(
$level
){
case
'debug'
:
$level
=
\OCP\Util
::
DEBUG
;
break
;
case
'info'
:
$level
=
\OCP\Util
::
INFO
;
break
;
case
'warn'
:
$level
=
\OCP\Util
::
WARN
;
break
;
case
'fatal'
:
$level
=
\OCP\Util
::
FATAL
;
break
;
default
:
$level
=
\OCP\Util
::
ERROR
;
break
;
}
\OCP\Util
::
writeLog
(
$this
->
appName
,
$msg
,
$level
);
}
/**
* turns an owncloud path into a path on the filesystem
* @param string path the path to the file on the oc filesystem
* @return string the filepath in the filesystem
*/
public
function
getLocalFilePath
(
$path
){
# TODO: use public api
return
\OC_Filesystem
::
getLocalFile
(
$path
);
}
/**
* used to return and open a new eventsource
* @return \OC_EventSource a new open EventSource class
...
...
@@ -192,15 +154,6 @@ class API implements IApi{
}
}
/**
* Gets the content of an URL by using CURL or a fallback if it is not
* installed
* @param string $url the url that should be fetched
* @return string the content of the webpage
*/
public
function
getUrlContent
(
$url
)
{
return
\OC_Util
::
getUrlContent
(
$url
);
}
/**
* Register a backgroundjob task
...
...
@@ -212,25 +165,6 @@ class API implements IApi{
\OCP\Backgroundjob
::
addRegularTask
(
$className
,
$methodName
);
}
/**
* Returns a template
* @param string $templateName the name of the template
* @param string $renderAs how it should be rendered
* @param string $appName the name of the app
* @return \OCP\Template a new template
*/
public
function
getTemplate
(
$templateName
,
$renderAs
=
'user'
,
$appName
=
null
){
if
(
$appName
===
null
){
$appName
=
$this
->
appName
;
}
if
(
$renderAs
===
'blank'
){
return
new
\OCP\Template
(
$appName
,
$templateName
);
}
else
{
return
new
\OCP\Template
(
$appName
,
$templateName
,
$renderAs
);
}
}
/**
* Tells ownCloud to include a template in the admin overview
...
...
@@ -247,19 +181,4 @@ class API implements IApi{
}
/**
* get the filesystem info
*
* @param string $path
* @return array with the following keys:
* - size
* - mtime
* - mimetype
* - encrypted
* - versioned
*/
public
function
getFileInfo
(
$path
)
{
return
\OC\Files\Filesystem
::
getFileInfo
(
$path
);
}
}
This diff is collapsed.
Click to expand it.
lib/public/appframework/iapi.php
+
0
−
20
View file @
c3286402
...
...
@@ -75,24 +75,4 @@ interface IApi {
*/
public
function
isAppEnabled
(
$appName
);
/**
* Writes a function into the error log
* @param string $msg the error message to be logged
* @param int $level the error level
*
* FIXME: add logger instance to ServerContainer
*/
function
log
(
$msg
,
$level
=
null
);
/**
* Returns a template
* @param string $templateName the name of the template
* @param string $renderAs how it should be rendered
* @param string $appName the name of the app
* @return \OCP\Template a new template
*/
function
getTemplate
(
$templateName
,
$renderAs
=
'user'
,
$appName
=
null
);
}
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