ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Variables
$
c
d
e
f
g
h
i
j
l
m
n
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
§
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
§
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Modules
Pages
AbstractAdapter.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
League\Flysystem\Adapter
;
4
5
use
League\Flysystem\AdapterInterface
;
6
7
abstract
class
AbstractAdapter
implements
AdapterInterface
8
{
12
protected
$pathPrefix
;
13
17
protected
$pathSeparator
=
'/'
;
18
26
public
function
setPathPrefix
($prefix)
27
{
28
$prefix = (string) $prefix;
29
30
if
($prefix ===
''
) {
31
$this->pathPrefix = null;
32
return
;
33
}
34
35
$this->pathPrefix = rtrim($prefix,
'\\/'
) .
$this->pathSeparator
;
36
}
37
43
public
function
getPathPrefix
()
44
{
45
return
$this->pathPrefix
;
46
}
47
55
public
function
applyPathPrefix
(
$path
)
56
{
57
return
$this->
getPathPrefix
() . ltrim(
$path
,
'\\/'
);
58
}
59
67
public
function
removePathPrefix
(
$path
)
68
{
69
return
substr(
$path
, strlen($this->
getPathPrefix
()));
70
}
71
}
$path
$path
Definition:
aliased.php:25
League\Flysystem\Adapter\AbstractAdapter\setPathPrefix
setPathPrefix($prefix)
Set the path prefix.
Definition:
AbstractAdapter.php:26
League\Flysystem\Adapter\AbstractAdapter
Definition:
AbstractAdapter.php:7
League\Flysystem\Adapter\AbstractAdapter\getPathPrefix
getPathPrefix()
Get the path prefix.
Definition:
AbstractAdapter.php:43
League\Flysystem\Adapter\AbstractAdapter\applyPathPrefix
applyPathPrefix($path)
Prefix a path.
Definition:
AbstractAdapter.php:55
League\Flysystem\Adapter
Definition:
AbstractAdapter.php:3
League\Flysystem\Adapter\AbstractAdapter\$pathSeparator
$pathSeparator
Definition:
AbstractAdapter.php:17
League\Flysystem\Adapter\AbstractAdapter\$pathPrefix
$pathPrefix
Definition:
AbstractAdapter.php:12
League\Flysystem\Adapter\AbstractAdapter\removePathPrefix
removePathPrefix($path)
Remove a path prefix.
Definition:
AbstractAdapter.php:67
php
AdapterInterface
League\Flysystem\AdapterInterface
Definition:
AdapterInterface.php:5
libs
composer
vendor
league
flysystem
src
Adapter
AbstractAdapter.php
Generated on Thu Apr 17 2025 19:01:21 for ILIAS by
1.8.13 (using
Doxyfile
)