ParseSessionStorage
in package
implements
ParseStorageInterface
Class ParseSessionStorage - Uses PHP session support for persistent storage.
Tags
Interfaces, Classes and Traits
- ParseStorageInterface
- Class ParseStorageInterface - Specifies an interface for implementing persistence.
Table of Contents
- $storageKey : string
- Parse will store its values in a specific key.
- __construct() : mixed
- ParseSessionStorage constructor.
- clear() : void
- Clear all the values in storage.
- get() : mixed
- Gets the value for a key from storage.
- getAll() : array<string|int, mixed>
- Get all key-value pairs from storage.
- getKeys() : array<string|int, mixed>
- Get all keys in storage.
- remove() : void
- Remove a key from storage.
- save() : null
- Save the data, if necessary. Not implemented.
- set() : void
- Sets a key-value pair in storage.
Properties
$storageKey
Parse will store its values in a specific key.
private
string
$storageKey
= 'parseData'
Methods
__construct()
ParseSessionStorage constructor.
public
__construct() : mixed
Tags
Return values
mixed —clear()
Clear all the values in storage.
public
clear() : void
Return values
void —get()
Gets the value for a key from storage.
public
get(string $key) : mixed
Parameters
- $key : string
-
The key to get the value for
Return values
mixed —getAll()
Get all key-value pairs from storage.
public
getAll() : array<string|int, mixed>
Return values
array<string|int, mixed> —getKeys()
Get all keys in storage.
public
getKeys() : array<string|int, mixed>
Return values
array<string|int, mixed> —remove()
Remove a key from storage.
public
remove(string $key) : void
Parameters
- $key : string
-
The key to remove.
Return values
void —save()
Save the data, if necessary. Not implemented.
public
save() : null
Return values
null —set()
Sets a key-value pair in storage.
public
set(string $key, mixed $value) : void
Parameters
- $key : string
-
The key to set
- $value : mixed
-
The value to set