getConfig()->getUserValue(\OC_User::getUser(), 'epubreader', $key, $default); } /** * @brief set user config value * * @param string $key key for value to change * @param string $value value to use * @return bool success */ public static function set(string $key, string $value): bool { return \OC::$server->getConfig()->setUserValue(\OC_User::getUser(), 'epubreader', $key, $value); } /** * @brief get app config value * * @param string $key value to retrieve * @param string $default default value to use * @return string retrieved value or default */ public static function getApp(string $key, string $default): string { return \OC::$server->getConfig()->getAppValue('epubreader', $key, $default); } /** * @brief set app config value * * @param string $key key for value to change * @param string $value value to use * @return bool success */ public static function setApp(string $key, string $value): bool { return \OC::$server->getConfig()->setAppValue('epubreader', $key, $value); } }