dbxapp 4.5.3
Technische API-Referenz der dbxapp-Plattform
Lade ...
Suche ...
Keine Treffer
dbxUiSettingsService Klassenreferenz

Verwaltet installationsweite UI-Standards für Benutzer ohne eigene Werte. Mehr ...

Öffentliche Methoden

 load_defaults ()
 ensure_schema ()
 ensure_user_schema ()
 load_user_profiles (int $user_id)
 save_user_profile (string $context, array $settings, int $user_id)
 clear_user_profile (string $context, int $user_id)
 save_defaults (string $context, array $settings, int $user_id)
 clear_defaults (string $context)
 normalize_settings (array $settings, string $context)
 normalize_context (string $context)
 settings_json_html (array $settings)
 is_eligible_key (string $storage_key, string $context)

Öffentliche Attribute

const DD = 'dbx|dbxUiDefault'
const USER_DD = 'dbx|dbxUiProfile'
const CONTEXT_DESKTOP = 'desktop'
const CONTEXT_MOBILE = 'mobile'

Ausführliche Beschreibung

Verwaltet installationsweite UI-Standards für Benutzer ohne eigene Werte.

Persoenliche Werte bleiben im Browser unter dbx.UI.*. Der Service speichert nur explizit freigegebene, stabile Darstellungsschlüssel und trennt sie in Desktop- und Mobile-Kontexte.

Dokumentation der Elementfunktionen

◆ clear_defaults()

dbxUiSettingsService::clear_defaults ( string $context)

◆ clear_user_profile()

dbxUiSettingsService::clear_user_profile ( string $context,
int $user_id )

◆ ensure_schema()

dbxUiSettingsService::ensure_schema ( )

Wird benutzt von clear_defaults() und save_defaults().

◆ ensure_user_schema()

dbxUiSettingsService::ensure_user_schema ( )

◆ is_eligible_key()

dbxUiSettingsService::is_eligible_key ( string $storage_key,
string $context )

Benutzt normalize_context().

Wird benutzt von normalize_settings().

◆ load_defaults()

dbxUiSettingsService::load_defaults ( )
Rückgabe
array<string,array<string,mixed>>

Benutzt $row, $rows, normalize_context() und normalize_settings().

◆ load_user_profiles()

dbxUiSettingsService::load_user_profiles ( int $user_id)
Rückgabe
array<string,array<string,mixed>>

Benutzt $row, $rows, normalize_context() und normalize_settings().

◆ normalize_context()

dbxUiSettingsService::normalize_context ( string $context)

◆ normalize_settings()

dbxUiSettingsService::normalize_settings ( array $settings,
string $context )
Parameter
array$settingsZu normalisierende Einstellungen
string$contextZielkontext desktop oder mobile
Rückgabe
array<string,mixed>

Benutzt is_eligible_key() und normalize_context().

Wird benutzt von load_defaults(), load_user_profiles(), save_defaults() und save_user_profile().

◆ save_defaults()

dbxUiSettingsService::save_defaults ( string $context,
array $settings,
int $user_id )
Parameter
string$contextZielkontext desktop oder mobile
array$settingsZu speichernde UI-Standards
int$user_idKennung des verantwortlichen Benutzers

Benutzt $db, $json, ensure_schema(), normalize_context() und normalize_settings().

◆ save_user_profile()

dbxUiSettingsService::save_user_profile ( string $context,
array $settings,
int $user_id )
Parameter
string$contextZielkontext desktop oder mobile
array$settingsZu speichernde Benutzereinstellungen
int$user_idKennung des angemeldeten Benutzers

Benutzt $db, $json, ensure_user_schema(), normalize_context() und normalize_settings().

◆ settings_json_html()

dbxUiSettingsService::settings_json_html ( array $settings)
Parameter
array$settingsSicher in HTML einzubettende Einstellungen.

Benutzt $json.

Dokumentation der Datenelemente

◆ CONTEXT_DESKTOP

const dbxUiSettingsService::CONTEXT_DESKTOP = 'desktop'

◆ CONTEXT_MOBILE

const dbxUiSettingsService::CONTEXT_MOBILE = 'mobile'

◆ DD

const dbxUiSettingsService::DD = 'dbx|dbxUiDefault'

◆ USER_DD

const dbxUiSettingsService::USER_DD = 'dbx|dbxUiProfile'

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: