DatabaseStore
class DatabaseStore extends BaseStore (View source)
Traits
Provides extensions to this object to integrate it with standard config API methods.
Constants
HASH_ALGO |
Hashing algorithm used to encrypt $session_id (PHPSESSID)
Ensure that HybridSessionDataObject.SessionID is wide enough to accomodate the hash |
Methods
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
Gets the uninherited value for the given config option
No description
No description
No description
No description
No description
No description
Encode binary data into ASCII string (a subset of UTF-8)
Decode ASCII string into original binary data (a php string)
Details
static Config_ForClass
config()
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
mixed
uninherited(string $name)
Gets the uninherited value for the given config option
void
setKey(string|null $key)
Assign a new session secret key
bool
open(string $save_path, string $name)
bool
close()
string|false
read(string $session_id)
bool
write(string $session_id, string $session_data)
bool
destroy(string $session_id)
int|false
gc(int $maxlifetime)
static string
binaryDataJsonEncode(string $data)
Encode binary data into ASCII string (a subset of UTF-8)
Silverstripe <= 4.4 does not have a binary db field implementation, so we have to store binary data as text
static string|null
binaryDataJsonDecode(string $text)
Decode ASCII string into original binary data (a php string)
Silverstripe <= 4.4 does not have a binary db field implementation, so we have to store binary data as text