Preferences
Preferences are user-specific key/value settings.
They exist for choices that belong to one user, such as table settings or UI preferences.
Use settings instead when a value should apply to the whole application.
qore()->preferences()->setPreference('language', 'nl');
$language = qore()->preferences()->getPreference('language', 'en');
Preferences are loaded for the authenticated user and sent to the frontend globals payload.
Use setPreferencesFields() when the preferences page should render editable Qore fields.