dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
run_job.php File Reference

Go to the source code of this file.

Functions

 dbxki_usage ()
 dbxki_read_job (array $argv)
 dbxki_result_ref (string $ref, array $results)
 dbxki_prepare_asset_file (array $params)
 dbxki_resolve_params ($value, array $results)
 dbxki_normalize_result (string $action, array $result)

Variables

 $base = dirname(__DIR__, 4)
 Direkt-Runner fuer dbxKi-Jobs.
 $_SERVER ['REQUEST_URI'] = '/dbxapp/'
 $_SERVER ['HTTP_HOST'] = 'localhost'
 $_SERVER ['HTTPS'] = 'on'
 $_SERVER ['SCRIPT_NAME'] = '/dbxapp/index.php'
const dbxSystem 'dbxWebApp'
const dbxRunAsAdmin 1
 try
 $cms = new \dbx\dbxKi\dbxKiCmsService()
 $results = array()
 foreach ( $job[ 'steps'] as $pos=> $step)

Function Documentation

◆ dbxki_normalize_result()

dbxki_normalize_result ( string $action,
array $result )

Definition at line 120 of file run_job.php.

References $out, and $result.

◆ dbxki_prepare_asset_file()

dbxki_prepare_asset_file ( array $params)

Definition at line 76 of file run_job.php.

Referenced by dbxki_resolve_params().

◆ dbxki_read_job()

dbxki_read_job ( array $argv)

Definition at line 31 of file run_job.php.

References $argv, $source, dbxki_usage(), and exit.

◆ dbxki_resolve_params()

dbxki_resolve_params ( $value,
array $results )

◆ dbxki_result_ref()

dbxki_result_ref ( string $ref,
array $results )

Definition at line 58 of file run_job.php.

References $results, and $value.

Referenced by dbxki_resolve_params().

◆ dbxki_usage()

dbxki_usage ( )

Definition at line 27 of file run_job.php.

Referenced by dbxki_read_job().

Variable Documentation

◆ $_SERVER [1/4]

$_SERVER[ 'HTTP_HOST'] = 'localhost'

Definition at line 16 of file run_job.php.

◆ $_SERVER [2/4]

$_SERVER[ 'HTTPS'] = 'on'

Definition at line 17 of file run_job.php.

◆ $_SERVER [3/4]

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

Definition at line 15 of file run_job.php.

◆ $_SERVER [4/4]

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

Definition at line 18 of file run_job.php.

◆ $base

$base = dirname(__DIR__, 4)

Direkt-Runner fuer dbxKi-Jobs.

Zweck: Eine lokale KI wie Codex/Cursor kann einen dbxKi-Job ohne Einmal-Skript ausfuehren. Der Runner nutzt dieselben sicheren Aktionen wie der Bundle-Import und akzeptiert JSON aus Datei oder STDIN.

Aufruf: php dbx/modules/dbxKi/tools/run_job.php job.json Get-Content job.json -Raw | php dbx/modules/dbxKi/tools/run_job.php -

Definition at line 13 of file run_job.php.

◆ $cms

Definition at line 142 of file run_job.php.

◆ $results

◆ dbxRunAsAdmin

const dbxRunAsAdmin 1

Definition at line 21 of file run_job.php.

◆ dbxSystem

const dbxSystem 'dbxWebApp'

Definition at line 20 of file run_job.php.

◆ foreach

foreach($job['steps'] as $pos=> $step) ( $job as[ 'steps'],
$step )

Definition at line 145 of file run_job.php.

◆ try

try
Initial value:
{
dbxki_read_job(array $argv)
Definition run_job.php:31

Definition at line 140 of file run_job.php.