◆ __construct()
__construct |
( |
|
$storagePath = null , |
|
|
|
$systemSecret = null |
|
) |
| |
FileStorage constructor.
- Paramètres
-
string | null | $storagePath | filesystem path to storage (without trailing slash) |
string | null | $systemSecret | prefix unique to this system |
◆ delete()
Delete a key
- Paramètres
-
- Renvoie
- boolean true if key deleted, otherwise false
Implémente StorageInterface.
◆ exists()
Check if key data exists
- Paramètres
-
- Renvoie
- boolean true if key exists, otherwise false
Implémente StorageInterface.
◆ fetch()
Fetch key data by name
- Paramètres
-
- Renvoie
- string|false key data (possibly serialized) or false on error
Implémente StorageInterface.
◆ fileName()
Fetch key data by name
- Paramètres
-
- Renvoie
- string file name
◆ generateSystemSecret()
Construct a string related to the system to make name less predictable
- Renvoie
- string
◆ save()
Save key data by name
- Paramètres
-
string | $name | key name |
string | $data | key data, serialized to string if required |
- Renvoie
- boolean true if key saved, otherwise false
Implémente StorageInterface.
◆ $storagePath
◆ $systemSecret
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/class/libraries/vendor/xoops/xmf/src/Key/FileStorage.php