blob: 0f6f5e2182c14cde25b4b2da2a969b64992eb11d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
namespace OCA\AppOrder\Service;
use \OCP\IConfig;
class ConfigService {
private $config;
private $appName;
public function __construct(IConfig $config, $appName) {
$this->config = $config;
$this->appName = $appName;
}
public function getAppValue($key) {
return $this->config->getAppValue($this->appName, $key);
}
public function setAppValue($key, $value) {
$this->config->setAppValue($this->appName, $key, $value);
}
public function getUserValue($key, $userId) {
return $this->config->getUserValue($userId, $this->appName, $key);
}
public function setUserValue($key, $userId, $value) {
$this->config->setUserValue($userId, $this->appName, $key, $value);
}
}
|