FileStorage
in package
implements
Storage
Interfaces, Classes and Traits
Table of Contents
- $storageDir : string
- __construct() : mixed
- getSetup() : string
- saveSetup() : void
- filename() : string
- Generate a filename in storageDir
Properties
$storageDir
private
string
$storageDir
Methods
__construct()
public
__construct(string $storageDir) : mixed
Parameters
- $storageDir : string
Return values
mixed —getSetup()
public
getSetup(string $subject, string $scope) : string
Parameters
- $subject : string
- $scope : string
Return values
string —saveSetup()
public
saveSetup(string $subject, string $scope, string $setup) : void
Parameters
- $subject : string
- $scope : string
- $setup : string
Return values
void —filename()
Generate a filename in storageDir
private
filename(string $subject, string $scope) : string
The subject name and scope are base64-encoded to allow characters which may be illegal in filesystems or pose a security risk
Parameters
- $subject : string
- $scope : string