| @@ 161-168 (lines=8) @@ | ||
| 158 | * |
|
| 159 | * @return string |
|
| 160 | */ |
|
| 161 | public function getAppValue(string $key): string { |
|
| 162 | $defaultValue = null; |
|
| 163 | if (array_key_exists($key, $this->defaults)) { |
|
| 164 | $defaultValue = $this->defaults[$key]; |
|
| 165 | } |
|
| 166 | ||
| 167 | return $this->config->getAppValue(Application::APP_NAME, $key, $defaultValue); |
|
| 168 | } |
|
| 169 | ||
| 170 | /** |
|
| 171 | * Set a value by key |
|
| @@ 198-207 (lines=10) @@ | ||
| 195 | * |
|
| 196 | * @return string |
|
| 197 | */ |
|
| 198 | public function getUserValue(string $key): string { |
|
| 199 | $defaultValue = null; |
|
| 200 | if (array_key_exists($key, $this->defaults)) { |
|
| 201 | $defaultValue = $this->defaults[$key]; |
|
| 202 | } |
|
| 203 | ||
| 204 | return $this->config->getUserValue( |
|
| 205 | $this->userId, Application::APP_NAME, $key, $defaultValue |
|
| 206 | ); |
|
| 207 | } |
|
| 208 | ||
| 209 | /** |
|
| 210 | * Set a user value by key |
|