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