|
dbxapp 4.5.3
Technische API-Referenz der dbxapp-Plattform
|
Einheitliche Persistenzgrenze des Content-CMS. Mehr ...
Öffentliche Methoden | |
| __construct (private object $db, private string $media_dd='dbxMedia', private string $media_usage_dd='dbxMediaUsage') | |
| save_page (array $data, int $id, array $payload, callable $sync_hero, callable $sync_inline, callable $sync_language_media) | |
| create_page (array $data) | |
| duplicate_page (array $copy, callable $copy_media, callable $sync_inline) | |
| save_folder (array $data, int $id, callable $sync_hero) | |
| create_folder (array $data, int $parent_id) | |
| delete_page (int $id, array $languages) | |
| Löscht alle gewählten Sprachversionen gemeinsam oder keine. | |
| delete_folder (int $id, array $languages) | |
| Löscht nur vollständig leere Ordner und alle Sprachen atomar. | |
| move_node (string $type, int $id, int $target, int $before_id=0, int $after_id=0) | |
| language_save_response (string $entity, int $id, array $sync_result) | |
| language_provision_open_flag (string $entity, int $id) | |
| flush_lng_sync_cache (array $sync_result, bool $flush_menus=true) | |
| flush_saved_page_cache (int $cid) | |
| flush_deleted_page_cache (int $cid, string $lng='', bool $flush_menus=true) | |
| flush_deleted_folder_cache (int $folder_id, string $lng='', bool $flush_menus=true) | |
| flush_folder_cache (int $folder_id) | |
| flush_saved_folder_cache (int ... $folder_ids) | |
| flush_menu_cache () | |
| flush_tree_move_cache (string $type, int $id, int $target, int $old_parent, array $changed) | |
| flush_media_cache (int $content_id=0, int $folder_id=0) | |
| flush_media_by_media_id (int $media_id) | |
Einheitliche Persistenzgrenze des Content-CMS.
Alle Seiten- und Ordnermutationen laufen hier über dbxDB, innerhalb einer Transaktion und unabhängig vom verwendeten PDO-Treiber. Cache und Permalink-Index werden erst nach einem erfolgreichen Commit aktualisiert. Der Controller bleibt dadurch für Request-Validierung und JSON-Ausgabe zuständig, nicht für Datenbank-Lebenszyklen.
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::__construct | ( | private object | $db, |
| private string | $media_dd = 'dbxMedia', | ||
| private string | $media_usage_dd = 'dbxMediaUsage' ) |
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::create_folder | ( | array | $data, |
| int | $parent_id ) |
Benutzt $id.
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::create_page | ( | array | $data | ) |
Benutzt $id.
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::delete_folder | ( | int | $id, |
| array | $languages ) |
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::delete_page | ( | int | $id, |
| array | $languages ) |
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::duplicate_page | ( | array | $copy, |
| callable | $copy_media, | ||
| callable | $sync_inline ) |
Benutzt $copy_media und $result.
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::flush_deleted_folder_cache | ( | int | $folder_id, |
| string | $lng = '', | ||
| bool | $flush_menus = true ) |
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::flush_deleted_page_cache | ( | int | $cid, |
| string | $lng = '', | ||
| bool | $flush_menus = true ) |
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::flush_folder_cache | ( | int | $folder_id | ) |
Benutzt if.
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::flush_lng_sync_cache | ( | array | $sync_result, |
| bool | $flush_menus = true ) |
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::flush_media_by_media_id | ( | int | $media_id | ) |
Benutzt $media_id, $rows, flush_media_cache() und if.
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::flush_media_cache | ( | int | $content_id = 0, |
| int | $folder_id = 0 ) |
Benutzt if.
Wird benutzt von flush_media_by_media_id().
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::flush_menu_cache | ( | ) |
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::flush_saved_folder_cache | ( | int ... | $folder_ids | ) |
Benutzt $id.
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::flush_saved_page_cache | ( | int | $cid | ) |
Benutzt if.
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::flush_tree_move_cache | ( | string | $type, |
| int | $id, | ||
| int | $target, | ||
| int | $old_parent, | ||
| array | $changed ) |
Benutzt $id.
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::language_provision_open_flag | ( | string | $entity, |
| int | $id ) |
Wird benutzt von language_save_response().
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::language_save_response | ( | string | $entity, |
| int | $id, | ||
| array | $sync_result ) |
Benutzt $id und language_provision_open_flag().
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::move_node | ( | string | $type, |
| int | $id, | ||
| int | $target, | ||
| int | $before_id = 0, | ||
| int | $after_id = 0 ) |
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::save_folder | ( | array | $data, |
| int | $id, | ||
| callable | $sync_hero ) |
| dbx\dbxContent_admin\dbxContentCmsPersistenceService::save_page | ( | array | $data, |
| int | $id, | ||
| array | $payload, | ||
| callable | $sync_hero, | ||
| callable | $sync_inline, | ||
| callable | $sync_language_media ) |