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
810563ae
Commit
810563ae
authored
12 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
don't redefine inherited functions as abstract
parent
8687e0d3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/files/storage/common.php
+0
-13
0 additions, 13 deletions
lib/files/storage/common.php
with
0 additions
and
13 deletions
lib/files/storage/common.php
+
0
−
13
View file @
810563ae
...
...
@@ -23,18 +23,12 @@ namespace OC\Files\Storage;
abstract
class
Common
implements
\OC\Files\Storage\Storage
{
public
function
__construct
(
$parameters
)
{}
abstract
public
function
getId
();
abstract
public
function
mkdir
(
$path
);
abstract
public
function
rmdir
(
$path
);
abstract
public
function
opendir
(
$path
);
public
function
is_dir
(
$path
)
{
return
$this
->
filetype
(
$path
)
==
'dir'
;
}
public
function
is_file
(
$path
)
{
return
$this
->
filetype
(
$path
)
==
'file'
;
}
abstract
public
function
stat
(
$path
);
abstract
public
function
filetype
(
$path
);
public
function
filesize
(
$path
)
{
if
(
$this
->
is_dir
(
$path
))
{
return
0
;
//by definition
...
...
@@ -46,8 +40,6 @@ abstract class Common implements \OC\Files\Storage\Storage {
public
function
isCreatable
(
$path
)
{
return
$this
->
isUpdatable
(
$path
);
}
abstract
public
function
isReadable
(
$path
);
abstract
public
function
isUpdatable
(
$path
);
public
function
isDeletable
(
$path
)
{
return
$this
->
isUpdatable
(
$path
);
}
...
...
@@ -73,7 +65,6 @@ abstract class Common implements \OC\Files\Storage\Storage {
}
return
$permissions
;
}
abstract
public
function
file_exists
(
$path
);
public
function
filemtime
(
$path
)
{
$stat
=
$this
->
stat
(
$path
);
return
$stat
[
'mtime'
];
...
...
@@ -97,7 +88,6 @@ abstract class Common implements \OC\Files\Storage\Storage {
$handle
=
$this
->
fopen
(
$path
,
"w"
);
return
fwrite
(
$handle
,
$data
);
}
abstract
public
function
unlink
(
$path
);
public
function
rename
(
$path1
,
$path2
)
{
if
(
$this
->
copy
(
$path1
,
$path2
))
{
return
$this
->
unlink
(
$path1
);
...
...
@@ -111,7 +101,6 @@ abstract class Common implements \OC\Files\Storage\Storage {
$count
=
\OC_Helper
::
streamCopy
(
$source
,
$target
);
return
$count
>
0
;
}
abstract
public
function
fopen
(
$path
,
$mode
);
/**
* @brief Deletes all files and folders recursively within a directory
...
...
@@ -180,7 +169,6 @@ abstract class Common implements \OC\Files\Storage\Storage {
unlink
(
$tmpFile
);
return
$hash
;
}
abstract
public
function
free_space
(
$path
);
public
function
search
(
$query
)
{
return
$this
->
searchInDir
(
$query
);
}
...
...
@@ -222,7 +210,6 @@ abstract class Common implements \OC\Files\Storage\Storage {
}
}
}
abstract
public
function
touch
(
$path
,
$mtime
=
null
);
protected
function
searchInDir
(
$query
,
$dir
=
''
)
{
$files
=
array
();
...
...
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