1 | <?php |
||
27 | class FileStorage implements StorageInterface |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * Fetch key data by name |
||
32 | * |
||
33 | * @param string $name key name |
||
34 | * |
||
35 | * @return string file name |
||
36 | */ |
||
37 | protected function fileName($name) |
||
42 | |||
43 | /** |
||
44 | * Construct a string related to the system to make name less predictable |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | protected function systemSecret() |
||
56 | |||
57 | /** |
||
58 | * Save key data by name |
||
59 | * |
||
60 | * @param string $name key name |
||
61 | * @param string $data key data, serialized to string if required |
||
62 | * |
||
63 | * @return boolean true if key saved, otherwise false |
||
64 | */ |
||
65 | 1 | public function save($name, $data) |
|
74 | |||
75 | /** |
||
76 | * Fetch key data by name |
||
77 | * |
||
78 | * @param string $name key name |
||
79 | * |
||
80 | * @return string|false key data (possibly serialized) or false on error |
||
81 | */ |
||
82 | 1 | public function fetch($name) |
|
86 | |||
87 | /** |
||
88 | * Check if key data exists |
||
89 | * |
||
90 | * @param string $name key name |
||
91 | * |
||
92 | * @return boolean true if key exists, otherwise false |
||
93 | */ |
||
94 | 1 | public function exists($name) |
|
98 | |||
99 | /** |
||
100 | * Delete a key |
||
101 | * |
||
102 | * @param string $name key name |
||
103 | * |
||
104 | * @return boolean true if key deleted, otherwise false |
||
105 | */ |
||
106 | 1 | public function delete($name) |
|
110 | } |
||
111 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.