1 | <?php namespace Arcanedev\Settings; |
||
11 | class SettingsManager extends Manager |
||
12 | { |
||
13 | /* ------------------------------------------------------------------------------------------------ |
||
14 | | Main Functions |
||
15 | | ------------------------------------------------------------------------------------------------ |
||
16 | */ |
||
17 | /** |
||
18 | * Get the default driver name. |
||
19 | * |
||
20 | * @return string |
||
21 | */ |
||
22 | 9 | public function getDefaultDriver() |
|
26 | |||
27 | /* ------------------------------------------------------------------------------------------------ |
||
28 | | Driver Functions |
||
29 | | ------------------------------------------------------------------------------------------------ |
||
30 | */ |
||
31 | /** |
||
32 | * Create the Json driver store. |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | 6 | public function createJsonDriver() |
|
43 | |||
44 | /** |
||
45 | * Create the Database driver store. |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | 3 | public function createDatabaseDriver() |
|
58 | |||
59 | /** |
||
60 | * Create the Memory driver store. |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | 3 | public function createMemoryDriver() |
|
68 | |||
69 | /** |
||
70 | * Create the Array driver store. |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | 3 | public function createArrayDriver() |
|
78 | |||
79 | /* ------------------------------------------------------------------------------------------------ |
||
80 | | Other Functions |
||
81 | | ------------------------------------------------------------------------------------------------ |
||
82 | */ |
||
83 | /** |
||
84 | * Get config. |
||
85 | * |
||
86 | * @param string $key |
||
87 | * @param mixed|null $default |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | 9 | protected function getConfig($key, $default = null) |
|
98 | } |
||
99 |