|
dbxapp 4.5.3
Technische API-Referenz der dbxapp-Plattform
|
Variablen | |
| $repo_root = dirname(__DIR__, 4) | |
| $db_file = $repo_root . '/dbx/modules/dbx/db/dbxMedia.db3' | |
| $video_file = $repo_root . '/files/media/video/dbxapp-tvspot-20260731-v4.mp4' | |
| $poster_file = $repo_root . '/files/media/img/images/dbxapp-tvspot-poster-20260731-v4.webp' | |
| $backup_dir = $repo_root . '/files/tmp' | |
| $media_id = 442 | |
| foreach(array($db_file, $video_file, $poster_file) as $required_file) | $poster_info = @getimagesize($poster_file) |
| if(!is_array( $poster_info)||(int)( $poster_info[0] ?? 0) !==1024||(int)( $poster_info[1] ?? 0) !==576) if(!is_dir($backup_dir) &&!mkdir($backup_dir, 0775, true) &&!is_dir($backup_dir)) | $backup_file = $backup_dir . '/dbxMedia-before-tvspot-v4-' . date('Ymd-His') . '.db3' |
| if(!copy($db_file, $backup_file)) | $base = $repo_root |
| $_SERVER ['REQUEST_URI'] = '/dbxapp/' | |
| $_SERVER ['HTTP_HOST'] = 'localhost' | |
| $_SERVER ['SCRIPT_NAME'] = '/dbxapp/index.php' | |
| const | dbxSystem 'dbxWebApp' |
| const | dbxRunAsAdmin 1 |
| $db = dbx()->get_system_obj('dbxDB') | |
| $media_dd = 'dbx|dbxMedia' | |
| try | |
| if(!is_array( $before)||(int)( $before[ 'id'] ?? 0) !==$media_id) if((string)($before['media_type'] ?? '') !=='video') | $updated |
| if($updated !==1) | $after = $db->select1($media_dd, $media_id, '*', 0) |
| if(!is_array($after)||(string)($after['file_name'] ?? '') !==basename($video_file)) if( $db->commit( $media_dd) !==1) | catch (Throwable $exception) |
| $_SERVER[ 'HTTP_HOST'] = 'localhost' |
| $_SERVER[ 'REQUEST_URI'] = '/dbxapp/' |
| $_SERVER[ 'SCRIPT_NAME'] = '/dbxapp/index.php' |
| if ( $updated !==1) $after = $db->select1($media_dd, $media_id, '*', 0) |
| $backup_dir = $repo_root . '/files/tmp' |
| if(!is_array($poster_info)||(int)($poster_info[0] ?? 0) !==1024||(int)($poster_info[1] ?? 0) !==576) if (!is_dir( $backup_dir) &&!mkdir( $backup_dir, 0775, true) &&!is_dir( $backup_dir)) $backup_file = $backup_dir . '/dbxMedia-before-tvspot-v4-' . date('Ymd-His') . '.db3' |
| if (!copy( $db_file, $backup_file)) $base = $repo_root |
Wird benutzt von draw_shirt(), dbxTPL\get_design_tpl_dir_file(), dbx\dbxHelp\dbxHelp_content\get_server_info_html(), dbxPackageManager\inventory(), mod_class_files(), dbxTPL\read_tpl(), dbx\dbxContent\dbxContentMissingNavigation\redirect_target(), dbx\dbxEditor\dbxEditor\run(), dbx\dbxContent\dbxContentMediaResponse\serve_request(), dbx\dbxAdmin\server_row_action_data(), dbx\dbxAdmin\dbxModuleImages\suggest_filename() und dbx\dbxContent\dbxContent_permalink\unique().
Wird benutzt von dbx\dbxContent_admin\dbxContentCmsPersistenceService\__construct(), dbx\dbxContent_admin\add_content(), dbx\dbxContact\dbxContactTicket\add_message(), dbx\dbxContent\dbxContentLngSync\after_folder_save(), dbx\dbxContent\dbxContentLngSync\after_page_save(), dbx\dbxContent\dbxContentLngSync\backfill_master_lng(), dbx\dbxContent\dbxContentLngSync\backfill_uids(), dbx\dbxContent\dbxContent_permalink\build(), dbxUiSettingsService\clear_user_profile(), dbx\dbxContent\dbxContentLngSync\collect_folder_subtree_ids(), dbx\dbxContent\dbxContentLngSync\collect_page_ids_in_folders(), dbx\dbxContent\dbxContentLngSync\coverage_for_uid(), dbx\dbxContent_admin\del_content(), dbx\dbxContent_admin\dbxContent_seo\ensure_default_og_image(), dbx\dbxContent\dbxContentLngSync\ensure_folder_id_in_lng(), dbx\dbxContact\dbxContactTicket\ensure_initial_message(), dbx\dbxContent\dbxContentLngSync\ensure_record_uid(), dbx\dbxContent\dbxContentLngSync\ensure_schema(), dbx\dbxContent\dbxContent_permalink\exists(), dbx\dbxContent\dbxContentLngSync\folder_deletable(), dbxSession\get_current_user(), dbx\dbxContent\dbxContentLngSync\has_missing_slave_lng(), dbx\dbxContent\dbxContentPageCache\invalidate_folder_tree(), dbx\dbxContent\dbxContentHome\is_home_page(), dbx\dbxContent\dbxContentPermalinkIndex\load(), dbx\dbxContent\dbxContentLngSync\mark_manual(), dbx\dbxContact\dbxContactTicket\messages(), dbx\dbxContact\dbxContactTicket\open_count(), dbx\dbxContent\dbxContentCanonicalRoute\page_url(), dbx\dbxContent\dbxContentLngSync\preview_delete(), dbx\dbxContent\dbxContentLngSync\preview_provision(), dbx\dbxContent\dbxContentLngSync\provision_folder_tree(), dbx\dbxContent\dbxContentLngSync\provision_from_preview(), dbx\dbxContent\dbxContentLngSync\record_uid(), dbx\dbxContent\dbxContentHome\refresh_home_cache(), dbx\dbxMenu\dbxContent_menu\render_flat_marker(), dbx\dbxMenu\dbxContent_menu\render_placeholder(), dbx\dbxContent\dbxContentLngSync\reset_sync_to_auto(), dbx\dbxContent\dbxContentLngSync\resolve_delete_ids(), dbx\dbxContent\dbxContentLngSync\resolve_folder_id_in_lng(), dbx\dbxContent\dbxContentLngSync\resolve_id_by_uid(), dbx\dbxContent_admin\dbxContentCmsOptionCatalog\rights_values(), dbx\dbxAdmin\dbxDDServerBindings\run(), dbx\dbxContact\dbxContactContentProvision\run(), dbx\dbxContent_admin\dbxContent_edit\run(), dbx\dbxContent_admin\dbxContent_sysdata\run(), dbx\dbxLogin\register\run(), dbx\dbxUser\dbxUser_avatar\run(), dbx\dbxUser\dbxUser_profil\run(), dbx\dbxUser_admin\run(), dbxUiSettingsService\save_defaults(), dbx\dbxUser\dbxUser_avatar\save_upload(), dbxUiSettingsService\save_user_profile(), dbx\dbxWorkflow\dbxWorkflowBindRegistry\seed_bind(), dbx\dbxContent\dbxContentMediaResponse\serve_request(), dbx\dbxContent\dbxContentLngSync\sync_slaves_from_master(), dbx\dbxContact\dbxContactTicket\ticket(), dbx\dbxContact\dbxContactTicket\touch(), dbx\dbxContent\dbxContent_permalink\unique() und dbx\dbxChangeLog_admin\dbxChangeLogWriter\write().
Wird benutzt von dbxDB\get_table_exist().
| $media_dd = 'dbx|dbxMedia' |
Wird benutzt von dbx\dbxContent_admin\dbxContentCmsPersistenceService\__construct().
| $media_id = 442 |
Wird benutzt von dbx\dbxAdmin\dbxModuleImages\copy_from_media_id(), dbx\dbxContent_admin\dbxContent_seo\ensure_default_og_image(), dbx\dbxContent_admin\dbxContentCmsPersistenceService\flush_media_by_media_id(), dbx\dbxAdmin\dbxModuleImages\import_for_modul(), dbx\dbxAdmin\dbxModuleImages\import_symbol_for_modul(), dbx\dbxShop\dbxShopMediaUrl\item() und dbx\dbxContent_admin\dbxContentMediaUsageMaintenance\usage_key().
| $poster_file = $repo_root . '/files/media/img/images/dbxapp-tvspot-poster-20260731-v4.webp' |
| foreach (array( $db_file, $video_file, $poster_file) as $required_file) $poster_info = @getimagesize($poster_file) |
| $repo_root = dirname(__DIR__, 4) |
| if(!is_array($before)||(int)($before['id'] ?? 0) !==$media_id) if ((string)( $before[ 'media_type'] ?? '') !=='video') $updated |
Wird benutzt von dbx\dbxContent_admin\dbxContentCmsPersistenceService\flush_lng_sync_cache().
| $video_file = $repo_root . '/files/media/video/dbxapp-tvspot-20260731-v4.mp4' |
| if(!is_array( $after)||(string)( $after[ 'file_name'] ?? '') !==basename( $video_file)) if($db->commit($media_dd) !==1) catch(Throwable $exception) | ( | Throwable | $exception | ) |
| const dbxRunAsAdmin 1 |
| const dbxSystem 'dbxWebApp' |