ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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 Jan 16 2025 19:01:42 for ILIAS by
1.8.13 (using
Doxyfile
)