AbstractAdapter
in package
implements
AdapterInterface
Interfaces, Classes and Traits
Table of Contents
- $pathPrefix : string|null
- $pathSeparator : string
- applyPathPrefix() : string
- Prefix a path.
- getPathPrefix() : string|null
- Get the path prefix.
- removePathPrefix() : string
- Remove a path prefix.
- setPathPrefix() : void
- Set the path prefix.
Properties
$pathPrefix
protected
string|null
$pathPrefix
path prefix
$pathSeparator
protected
string
$pathSeparator
= '/'
Methods
applyPathPrefix()
Prefix a path.
public
applyPathPrefix(string $path) : string
Parameters
- $path : string
Return values
string —prefixed path
getPathPrefix()
Get the path prefix.
public
getPathPrefix() : string|null
Return values
string|null —path prefix or null if pathPrefix is empty
removePathPrefix()
Remove a path prefix.
public
removePathPrefix(string $path) : string
Parameters
- $path : string
Return values
string —path without the prefix
setPathPrefix()
Set the path prefix.
public
setPathPrefix(string $prefix) : void
Parameters
- $prefix : string