PHP Class izzum\statemachine\persistence\Session
Keep in mind that:
- php sessions have a limited lifetime.
- php sessions itself can have a different backend adapter, configurable.
- php sessions are only valid for one user's session (unless a session id is
forced)
A simple adapter for a proof of concept and an example.
it's possible to use this adapter for for instance gui wizards.
see also the /examples/session for how to use this adapter.
TRICKY: make sure output is not already sent when instantiating this adapter.
Afficher le fichier
Open project: rolfvreijdenberger/izzum-statemachine
Méthodes publiques
Méthodes protégées
Méthode |
Description |
|
insertState ( Identifier $identifier, $state, $message = null ) |
{@inheritDoc} |
|
updateState ( Identifier $identifier, $state, $message = null ) |
{@inheritDoc} |
|
Method Details
__construct()
public méthode
public __construct ( string $namespace = 'izzum', string $session_id = null ) |
$namespace |
string |
optional, defaults to izzum |
$session_id |
string |
optional force a session id, used for testing purposes |
getEntityIds()
public méthode
insertState()
protected méthode
protected insertState ( Identifier $identifier, $state, $message = null ) |
$identifier |
izzum\statemachine\Identifier |
|
isPersisted()
public méthode
public isPersisted ( Identifier $identifier ) |
$identifier |
izzum\statemachine\Identifier |
|
processGetState()
public méthode
public processGetState ( Identifier $identifier ) |
$identifier |
izzum\statemachine\Identifier |
|
updateState()
protected méthode
protected updateState ( Identifier $identifier, $state, $message = null ) |
$identifier |
izzum\statemachine\Identifier |
|