UserPreferencesHandler
class UserPreferencesHandler (View source)
Properties
| string | $storageType |
Methods
No description
Loads user preferences and merges them with current config must be called after control connection has been established
Get LoginCookieValidity from preferences cache.
Sets config value which is stored in user preferences (if available) or in a cookie.
Reads value stored by setUserValue()
Details
__construct(Config $config, DatabaseInterface $dbi, UserPreferences $userPreferences, LanguageManager $languageManager, ThemeManager $themeManager)
No description
void
loadUserPreferences(bool $isMinimumCommon = false)
Loads user preferences and merges them with current config must be called after control connection has been established
void
getLoginCookieValidityFromCache(int $server)
Get LoginCookieValidity from preferences cache.
No generic solution for loading preferences from cache as some settings need to be kept for processing in loadUserPreferences().
Message
setUserValue(string|null $cookieName, string $cfgPath, mixed $newCfgValue, string|null $defaultValue = null)
Sets config value which is stored in user preferences (if available) or in a cookie.
If user preferences are not yet initialized, option is applied to global config and added to a update queue, which is processed by loadUserPreferences()
mixed
getUserValue(string $cookieName, mixed $cfgValue)
Reads value stored by setUserValue()