|
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 |
| $lng = (string)($argv[1] ?? '') | |
| $id = (int)($argv[2] ?? 0) | |
| $patch_file = (string)($argv[3] ?? '') | |
| if($lng===''|| $id<=0|| $patch_file===''||!is_file($patch_file)) | $patch = json_decode((string)file_get_contents($patch_file), true) |
| if(!is_array($patch)) | $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, 'page.update', $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') |
| $execute_action = $ref->getMethod('execute_action') |
| $id = (int)($argv[2] ?? 0) |
| $lng = (string)($argv[1] ?? '') |
| if (!is_array( $patch)) $params |
Wird benutzt von dbxWebApp\append_route_params(), dbxWebApp\build_route_url(), dbxSession\destroy_php_session(), dbxWebApp\get_self_url(), mod_build_params(), mod_svg_content(), dbxWebApp\normalize_route_params(), dbxWebApp\parse_route_url(), dbxWebApp\peel_glued_params_from_path() und dbxWebApp\strip_unwanted_route_params().
| if ( $lng===''||$id<=0||$patch_file===''||!is_file( $patch_file)) $patch = json_decode((string)file_get_contents($patch_file), true) |
| $patch_file = (string)($argv[3] ?? '') |
| $ref = new ReflectionClass($service) |
Wird benutzt von dbx\dbxKi\handle_discard_preview().
| $result = $execute_action->invoke($service, 'page.update', $params, $plan) |
| $service = dbx()->get_include_obj('dbxKiCmsService', 'dbxKi') |
Wird benutzt von dbx\dbxChangeLog_admin\dbxChangeLog_admin\run() und dbx\dbxUser\dbxUserUiSettings\run().
| const dbxRunAsAdmin 1 |
| const dbxSystem 'dbxWebApp' |
| try |