1 | <?php |
||
20 | class DbStorage extends BaseObject implements StorageInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var Connection|array|string |
||
24 | */ |
||
25 | public $db = 'db'; |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | public $tableName = '{{%settings}}'; |
||
30 | |||
31 | /** |
||
32 | * Initializes the application component. |
||
33 | */ |
||
34 | 1 | public function init() |
|
39 | |||
40 | /** |
||
41 | * @param string $key |
||
42 | * @return false|null|string |
||
43 | */ |
||
44 | 1 | public function getValue($key) |
|
54 | |||
55 | /** |
||
56 | * @param string $key |
||
57 | * @param string $value |
||
58 | * @return bool |
||
59 | */ |
||
60 | 1 | public function setValue($key, $value) |
|
76 | |||
77 | /** |
||
78 | * @param string $key |
||
79 | * @return bool |
||
80 | */ |
||
81 | 1 | public function deleteValue($key) |
|
89 | } |
||
90 |