\AdventureRes\PersistentData AdventureResSessionPersistentDataHandler

Class AdventureResSessionPersistentDataHandler

Summary

Methods
Properties
Constants
__call()
__construct()
get()
set()
delete()
No public properties found
No constants found
No protected methods found
$sessionPrefix
N/A
No private methods found
No private properties found
N/A

Properties

$sessionPrefix

$sessionPrefix : string

Type

string — Prefix to use for session variables.

Methods

__call()

__call(  $command,   $arguments) 

Parameters

$command
$arguments

__construct()

__construct(boolean  $shouldCheckSessionStatus = false) 

Parameters

boolean $shouldCheckSessionStatus

Throws

\AdventureRes\Exceptions\AdventureResSDKException

get()

get(  $key, mixed  $defaultValue = null) : mixed

Gets a variable from the PHP Session.

Parameters

$key
mixed $defaultValue

If the key doesn't exist in the session, you can provide an optional default value.

Returns

mixed

set()

set(string  $key, mixed  $value) 

Sets a variable to the PHP Session.

Parameters

string $key
mixed $value

delete()

delete(  $key) 

Deletes a variable from the PHP Session.

Parameters

$key