codeblock updates

This commit is contained in:
Philipp Holzer 2019-02-05 23:42:49 +01:00
commit 62c79e1c4f
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
6 changed files with 54 additions and 31 deletions

View file

@ -28,6 +28,9 @@ class JITPConfigAdapter implements IPConfigAdapter
$this->configCache = $configCache;
}
/**
* {@inheritdoc}
*/
public function load($uid, $cat)
{
$pconfigs = DBA::select('pconfig', ['v', 'k'], ['cat' => $cat, 'uid' => $uid]);
@ -46,6 +49,9 @@ class JITPConfigAdapter implements IPConfigAdapter
DBA::close($pconfigs);
}
/**
* {@inheritdoc}
*/
public function get($uid, $cat, $k, $default_value = null, $refresh = false)
{
if (!$refresh) {
@ -82,6 +88,9 @@ class JITPConfigAdapter implements IPConfigAdapter
}
}
/**
* {@inheritdoc}
*/
public function set($uid, $cat, $k, $value)
{
// We store our setting values in a string variable.
@ -109,6 +118,9 @@ class JITPConfigAdapter implements IPConfigAdapter
return $result;
}
/**
* {@inheritdoc}
*/
public function delete($uid, $cat, $k)
{
$this->configCache->deleteP($uid, $cat, $k);