26 lines
486 B
PHP
26 lines
486 B
PHP
|
<?php
|
||
|
|
||
|
namespace OCA\Radio\Service;
|
||
|
|
||
|
use \OCP\IConfig;
|
||
|
|
||
|
class ConfigService {
|
||
|
|
||
|
private $config;
|
||
|
private $appName;
|
||
|
|
||
|
public function __construct(IConfig $config, $appName) {
|
||
|
$this->config = $config;
|
||
|
$this->appName = $appName;
|
||
|
}
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
|
||
|
}
|