- public function get($uid, $cat, $key, $default_value = null, $refresh = false)
- {
- // if the value isn't loaded or refresh is needed, load it to the cache
- if ($this->configAdapter->isConnected() &&
- (!$this->configAdapter->isLoaded($uid, $cat, $key) ||
- $refresh)) {
- $dbValue = $this->configAdapter->get($uid, $cat, $key);
-
- if ($dbValue !== '!<unset>!') {
- $this->configCache->setP($uid, $cat, $key, $dbValue);
- return $dbValue;
- }
- }
-
- // use the config cache for return
- if ($this->configCache->hasP($uid, $cat, $key)) {
- return $this->configCache->getP($uid, $cat, $key);
- } else {
- return $default_value;
- }
- }
+ abstract public function get(int $uid, string $cat, string $key, $default_value = null, bool $refresh = false);