|
dbxapp 4.5.3
Technische API-Referenz der dbxapp-Plattform
|
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' |
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.
| dbxUiSettingsService::clear_defaults | ( | string | $context | ) |
Benutzt ensure_schema() und normalize_context().
| dbxUiSettingsService::clear_user_profile | ( | string | $context, |
| int | $user_id ) |
Benutzt $db, ensure_user_schema() und normalize_context().
| dbxUiSettingsService::ensure_schema | ( | ) |
Wird benutzt von clear_defaults() und save_defaults().
| dbxUiSettingsService::ensure_user_schema | ( | ) |
Wird benutzt von clear_user_profile() und save_user_profile().
| dbxUiSettingsService::is_eligible_key | ( | string | $storage_key, |
| string | $context ) |
Benutzt normalize_context().
Wird benutzt von normalize_settings().
| dbxUiSettingsService::load_defaults | ( | ) |
Benutzt $row, $rows, normalize_context() und normalize_settings().
| dbxUiSettingsService::load_user_profiles | ( | int | $user_id | ) |
Benutzt $row, $rows, normalize_context() und normalize_settings().
| dbxUiSettingsService::normalize_context | ( | string | $context | ) |
| dbxUiSettingsService::normalize_settings | ( | array | $settings, |
| string | $context ) |
| array | $settings | Zu normalisierende Einstellungen |
| string | $context | Zielkontext desktop oder mobile |
Benutzt is_eligible_key() und normalize_context().
Wird benutzt von load_defaults(), load_user_profiles(), save_defaults() und save_user_profile().
| dbxUiSettingsService::save_defaults | ( | string | $context, |
| array | $settings, | ||
| int | $user_id ) |
| string | $context | Zielkontext desktop oder mobile |
| array | $settings | Zu speichernde UI-Standards |
| int | $user_id | Kennung des verantwortlichen Benutzers |
Benutzt $db, $json, ensure_schema(), normalize_context() und normalize_settings().
| dbxUiSettingsService::save_user_profile | ( | string | $context, |
| array | $settings, | ||
| int | $user_id ) |
| string | $context | Zielkontext desktop oder mobile |
| array | $settings | Zu speichernde Benutzereinstellungen |
| int | $user_id | Kennung des angemeldeten Benutzers |
Benutzt $db, $json, ensure_user_schema(), normalize_context() und normalize_settings().
| dbxUiSettingsService::settings_json_html | ( | array | $settings | ) |
| array | $settings | Sicher in HTML einzubettende Einstellungen. |
Benutzt $json.
| const dbxUiSettingsService::CONTEXT_DESKTOP = 'desktop' |
| const dbxUiSettingsService::CONTEXT_MOBILE = 'mobile' |
| const dbxUiSettingsService::DD = 'dbx|dbxUiDefault' |
| const dbxUiSettingsService::USER_DD = 'dbx|dbxUiProfile' |