dbxapp 4.5.3
Technische API-Referenz der dbxapp-Plattform
Lade ...
Suche ...
Keine Treffer
activate_home_tvspot_v4_20260731.php-Dateireferenz

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)

Variablen-Dokumentation

◆ $_SERVER [1/3]

$_SERVER[ 'HTTP_HOST'] = 'localhost'

◆ $_SERVER [2/3]

$_SERVER[ 'REQUEST_URI'] = '/dbxapp/'

◆ $_SERVER [3/3]

$_SERVER[ 'SCRIPT_NAME'] = '/dbxapp/index.php'

◆ $after

if ( $updated !==1) $after = $db->select1($media_dd, $media_id, '*', 0)

◆ $backup_dir

$backup_dir = $repo_root . '/files/tmp'

◆ $backup_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'

◆ $base

◆ $db

$db = dbx()->get_system_obj('dbxDB')

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().

◆ $db_file

$db_file = $repo_root . '/dbx/modules/dbx/db/dbxMedia.db3'

Wird benutzt von dbxDB\get_table_exist().

◆ $media_dd

◆ $media_id

◆ $poster_file

$poster_file = $repo_root . '/files/media/img/images/dbxapp-tvspot-poster-20260731-v4.webp'

◆ $poster_info

foreach (array( $db_file, $video_file, $poster_file) as $required_file) $poster_info = @getimagesize($poster_file)

◆ $repo_root

$repo_root = dirname(__DIR__, 4)

◆ $updated

if(!is_array($before)||(int)($before['id'] ?? 0) !==$media_id) if ((string)( $before[ 'media_type'] ?? '') !=='video') $updated
Initialisierung:
= $db->update($media_dd, array(
'update_date' => date('Y-m-d H:i:s.v'),
'update_uid' => 1,
'active' => 1,
'title' => 'dbxapp TV-Spot – Event-Choreografie',
'alt' => 'Dynamischer dbxapp TV-Spot mit eingeblendeten Statuskarten, UI-Ereignissen und klaren Zustandswechseln',
'file_name' => basename($video_file),
'file_path' => 'media/video/' . basename($video_file),
'mime' => 'video/mp4',
'size' => filesize($video_file),
'width' => 1024,
'height' => 576,
'thumb_file_path' => 'media/img/images/' . basename($poster_file),
'thumb_width' => 1024,
'thumb_height' => 576,
'media_type' => 'video',
'storage_type' => 'local',
'media_folder' => 'video',
), $media_id, 0, 1, 0, 1)
$db
Definition activate_home_tvspot_v4_20260731.php:48
$media_dd
Definition activate_home_tvspot_v4_20260731.php:49
$media_id
Definition activate_home_tvspot_v4_20260731.php:10
$video_file
Definition activate_home_tvspot_v4_20260731.php:7
$poster_file
Definition activate_home_tvspot_v4_20260731.php:8

Wird benutzt von dbx\dbxContent_admin\dbxContentCmsPersistenceService\flush_lng_sync_cache().

◆ $video_file

$video_file = $repo_root . '/files/media/video/dbxapp-tvspot-20260731-v4.mp4'

◆ catch

if(!is_array( $after)||(string)( $after[ 'file_name'] ?? '') !==basename( $video_file)) if($db->commit($media_dd) !==1) catch(Throwable $exception) ( Throwable $exception)

◆ dbxRunAsAdmin

const dbxRunAsAdmin 1

◆ dbxSystem

const dbxSystem 'dbxWebApp'

◆ try

try
Initialisierung:
{
if ($db->begin($media_dd) !== 1) {
throw new RuntimeException('Die Medientransaktion konnte nicht gestartet werden.');
}
$before = $db->select1($media_dd, $media_id, '*', 0)