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 | public function getDefaultDriver() |
||
26 | |||
27 | /* ------------------------------------------------------------------------------------------------ |
||
28 | | Driver Functions |
||
29 | | ------------------------------------------------------------------------------------------------ |
||
30 | */ |
||
31 | /** |
||
32 | * Create the Json driver store. |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public function createJsonDriver() |
||
40 | |||
41 | /** |
||
42 | * Create the Database driver store. |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | public function createDatabaseDriver() |
||
50 | |||
51 | /** |
||
52 | * Create the Memory driver store. |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | public function createMemoryDriver() |
||
60 | |||
61 | /** |
||
62 | * Create the Array driver store. |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function createArrayDriver() |
||
70 | |||
71 | /* ------------------------------------------------------------------------------------------------ |
||
72 | | Other Functions |
||
73 | | ------------------------------------------------------------------------------------------------ |
||
74 | */ |
||
75 | /** |
||
76 | * Get config. |
||
77 | * |
||
78 | * @param string $key |
||
79 | * @param mixed|null $default |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | protected function getConfig($key, $default = null) |
||
90 | } |
||
91 |