1 | <?php |
||
28 | class VariableStore extends AbstractResource |
||
29 | { |
||
30 | /** |
||
31 | * The current prefix for the variable store |
||
32 | * |
||
33 | * @var string $current_prefix |
||
34 | */ |
||
35 | private $current_prefix; |
||
36 | |||
37 | /** |
||
38 | * The relative prefix for the variable store |
||
39 | * |
||
40 | * @var string $path |
||
41 | */ |
||
42 | private $prefix; |
||
43 | |||
44 | /** |
||
45 | * Creates a relative prefix for the store |
||
46 | * |
||
47 | * @param bool $relative Is the prefix relative |
||
48 | */ |
||
49 | 77 | public function createPrefix($relative) |
|
58 | |||
59 | /** |
||
60 | * Creates a new prefix name for the store |
||
61 | * |
||
62 | * @param string $prefix The prefix for the store |
||
63 | * @param string $key The key for the item |
||
64 | * |
||
65 | * @return string The new prefix |
||
66 | */ |
||
67 | 15 | public function createPrefixName($prefix, $key) |
|
71 | |||
72 | /** |
||
73 | * Get the prefix |
||
74 | * |
||
75 | * @return string The prefix |
||
76 | */ |
||
77 | 75 | public function getPrefix() |
|
81 | |||
82 | /** |
||
83 | * Sets the current prefix |
||
84 | * |
||
85 | * @param string $prefix The new prefix |
||
86 | */ |
||
87 | 63 | public function setCurrentPrefix($prefix) |
|
91 | } |
||
92 |