1 | <?php |
||
4 | class SessionPersistentDataStore implements PersistentDataStoreInterface |
||
5 | { |
||
6 | |||
7 | /** |
||
8 | * Session Variable Prefix |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $prefix; |
||
13 | |||
14 | /** |
||
15 | * Create a new SessionPersistentDataStore instance |
||
16 | * |
||
17 | * @param string $prefix Session Variable Prefix |
||
18 | */ |
||
19 | 58 | public function __construct($prefix = "DBAPI_") |
|
23 | |||
24 | /** |
||
25 | * Get a value from the store |
||
26 | * |
||
27 | * @param string $key Data Key |
||
28 | * |
||
29 | * @return string|null |
||
30 | */ |
||
31 | public function get($key) |
||
39 | |||
40 | /** |
||
41 | * Set a value in the store |
||
42 | * @param string $key Data Key |
||
43 | * @param string $value Data Value |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | public function set($key, $value) |
||
51 | |||
52 | /** |
||
53 | * Clear the key from the store |
||
54 | * |
||
55 | * @param $key Data Key |
||
56 | * |
||
57 | * @return void |
||
58 | */ |
||
59 | public function clear($key) |
||
65 | } |
||
66 |