CodeCraft\Pathfinder\Model\Store\SessionProgressStore
Uses the session to store a Pathfinder user's progress
Synopsis
class SessionProgressStore
extends ProgressStore
{
- // Inherited methods from ProgressStore
- public void initAfterRequestHandler()
- public ProgressStore add()
- public array get()
- public ProgressStore set()
- public ProgressStore clear()
- public ProgressStore clearAfterPos()
- public ProgressStore addProgress()
- public Pathfinder getHandler()
- public ProgressStore setHandler()
- public void updateForm()
- public string augmentURL()
- public string getStorageName()
- public ProgressEntry|null getByPos()
- public array toArray()
- public int count()
- public ProgressEntry|null last()
- public bool canValidateSequence()
- public bool|null isInSequence()
Hierarchy
Members
protected
- $entries — array
- $handler — CodeCraft\Pathfinder\Model\Pathfinder
Methods
public
Inherited from CodeCraft\Pathfinder\Model\Store\ProgressStore
public
- add() — Add an item to the current progress
- addProgress() — Add progress by question, answer and choices
- augmentURL() — Modify the redirect url used to continue to the next step in the pathfinder
- canValidateSequence() — A heuristic for whether this story can/should determine if a specific question is the next in sequence
- clear() — Clear the current progress store
- clearAfterPos()
- count()
- get() — Get the current progress
- getByPos()
- getHandler()
- getStorageName()
- initAfterRequestHandler()
- isInSequence() — Determines if a question is the next in sequence
- last()
- set() — Set the current progress
- setHandler()
- toArray()
- updateForm() — Invoked as part of {@see PathfinderRequestHandler::Form()}