◆ __construct()
__construct |
( |
|
$storagePath = null , |
|
|
|
$systemSecret = null |
|
) |
| |
FileStorage constructor.
- Parameters
-
string | null | $storagePath | filesystem path to storage (without trailing slash) |
string | null | $systemSecret | prefix unique to this system |
◆ delete()
Delete a key
- Parameters
-
- Returns
- boolean true if key deleted, otherwise false
Implements StorageInterface.
◆ exists()
Check if key data exists
- Parameters
-
- Returns
- boolean true if key exists, otherwise false
Implements StorageInterface.
◆ fetch()
Fetch key data by name
- Parameters
-
- Returns
- string|false key data (possibly serialized) or false on error
Implements StorageInterface.
◆ fileName()
Fetch key data by name
- Parameters
-
- Returns
- string file name
◆ generateSystemSecret()
Construct a string related to the system to make name less predictable
- Returns
- string
◆ save()
Save key data by name
- Parameters
-
string | $name | key name |
string | $data | key data, serialized to string if required |
- Returns
- boolean true if key saved, otherwise false
Implements StorageInterface.
◆ $storagePath
◆ $systemSecret
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/class/libraries/vendor/xoops/xmf/src/Key/FileStorage.php