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

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)

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'

◆ $base

$base = dirname(__DIR__, 4)

◆ $build_plan

$build_plan = $ref->getMethod('build_plan')

◆ $execute_action

$execute_action = $ref->getMethod('execute_action')

◆ $id

$id = (int)($argv[2] ?? 0)

◆ $lng

$lng = (string)($argv[1] ?? '')

◆ $params

if (!is_array( $patch)) $params
Initialisierung:
= array(
'lng' => $lng,
'id' => $id,
'patch' => $patch,
)
$lng
Definition dbxki_get_page.php:22
$id
Definition dbxki_get_page.php:23
if($lng===''|| $id<=0|| $patch_file===''||!is_file($patch_file)) $patch
Definition dbxki_page_update.php:32

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

◆ $patch

if ( $lng===''||$id<=0||$patch_file===''||!is_file( $patch_file)) $patch = json_decode((string)file_get_contents($patch_file), true)

◆ $patch_file

$patch_file = (string)($argv[3] ?? '')

◆ $ref

$ref = new ReflectionClass($service)

◆ $result

$result = $execute_action->invoke($service, 'page.update', $params, $plan)

◆ $service

$service = dbx()->get_include_obj('dbxKiCmsService', 'dbxKi')

◆ dbxRunAsAdmin

const dbxRunAsAdmin 1

◆ dbxSystem

const dbxSystem 'dbxWebApp'

◆ try

try
Initialisierung:
{
$plan = $build_plan->invoke($service, 'page.update', $params)
$build_plan
Definition dbxki_page_update.php:47
$service
Definition dbxki_page_update.php:44
if(!is_array($patch)) $params
Definition dbxki_page_update.php:38