|
dbxapp 4.5.3
Technische API-Referenz der dbxapp-Plattform
|
Variablen | |
| $base = dirname(__DIR__, 4) | |
| $_SERVER ['REQUEST_URI'] = '/dbxapp/' | |
| $_SERVER ['HTTP_HOST'] = 'localhost' | |
| $_SERVER ['SCRIPT_NAME'] = '/dbxapp/index.php' | |
| const | dbxSystem 'dbxWebApp' |
| const | dbxRunAsAdmin 1 |
| $source_lng = (string)($argv[1] ?? '') | |
| $target_lng = (string)($argv[2] ?? '') | |
| $source_id = (int)($argv[3] ?? 0) | |
| $translation_file = (string)($argv[4] ?? '') | |
| if($source_lng===''|| $target_lng===''|| $source_id<=0|| $translation_file===''||!is_file($translation_file)) | $translation = json_decode((string)file_get_contents($translation_file), true) |
| if(!is_array($translation)) | $copy_media = array_key_exists('copy_media', $translation) ? (int)$translation['copy_media'] : 1 |
| $params | |
| $service = dbx()->get_include_obj('dbxKiCmsService', 'dbxKi') | |
| $ref = new ReflectionClass($service) | |
| $build_plan = $ref->getMethod('build_plan') | |
| $execute_action = $ref->getMethod('execute_action') | |
| try | |
| $result = $execute_action->invoke($service, 'translation.apply', $params, $plan) | |
| $_SERVER[ 'HTTP_HOST'] = 'localhost' |
| $_SERVER[ 'REQUEST_URI'] = '/dbxapp/' |
| $_SERVER[ 'SCRIPT_NAME'] = '/dbxapp/index.php' |
| $base = dirname(__DIR__, 4) |
| $build_plan = $ref->getMethod('build_plan') |
| if (!is_array( $translation)) $copy_media = array_key_exists('copy_media', $translation) ? (int)$translation['copy_media'] : 1 |
Wird benutzt von dbx\dbxContent_admin\dbxContentCmsPersistenceService\duplicate_page().
| $execute_action = $ref->getMethod('execute_action') |
| $params |
| $ref = new ReflectionClass($service) |
| $result = $execute_action->invoke($service, 'translation.apply', $params, $plan) |
| $service = dbx()->get_include_obj('dbxKiCmsService', 'dbxKi') |
| $source_id = (int)($argv[3] ?? 0) |
| $source_lng = (string)($argv[1] ?? '') |
Wird benutzt von dbx\dbxContent\dbxContentCanonicalRoute\page_url().
| $target_lng = (string)($argv[2] ?? '') |
| if ( $source_lng===''||$target_lng===''||$source_id<=0||$translation_file===''||!is_file( $translation_file)) $translation = json_decode((string)file_get_contents($translation_file), true) |
| $translation_file = (string)($argv[4] ?? '') |
| const dbxRunAsAdmin 1 |
| const dbxSystem 'dbxWebApp' |
| try |