nextcloud-app-radio/service/configservice.php
2018-08-12 16:22:11 +02:00

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);
}
}