dbXapp 2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Loading...
Searching...
No Matches
run_job.php File Reference

Go to the source code of this file.

Functions

 dbx_get_base_dir ($cut_Data=0)
 dbx_get_file_dir ()
 dbx_os_path_file ($path_file)
 dbx_path_is_absolute (string $path)
 dbx_config_path_store (string $path, bool $dirTrailingSlash=false)
 dbx_config_path_resolve (string $path)
 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

◆ dbx_config_path_resolve()

dbx_config_path_resolve ( string $path)

Definition at line 76 of file run_job.php.

◆ dbx_config_path_store()

dbx_config_path_store ( string $path,
bool $dirTrailingSlash = false )

Definition at line 56 of file run_job.php.

◆ dbx_get_base_dir()

dbx_get_base_dir ( $cut_Data = 0)

Definition at line 23 of file run_job.php.

References $base.

Referenced by dbx_get_file_dir().

◆ dbx_get_file_dir()

dbx_get_file_dir ( )

Definition at line 32 of file run_job.php.

References dbx_get_base_dir().

◆ dbx_os_path_file()

dbx_os_path_file ( $path_file)

Definition at line 36 of file run_job.php.

References $path_file.

◆ dbx_path_is_absolute()

dbx_path_is_absolute ( string $path)

Definition at line 45 of file run_job.php.

◆ dbxki_normalize_result()

dbxki_normalize_result ( string $action,
array $result )

Definition at line 184 of file run_job.php.

References $result.

◆ dbxki_prepare_asset_file()

dbxki_prepare_asset_file ( array $params)

Definition at line 140 of file run_job.php.

Referenced by dbxki_resolve_params().

◆ dbxki_read_job()

dbxki_read_job ( array $argv)

Definition at line 95 of file run_job.php.

References 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 122 of file run_job.php.

References $results.

Referenced by dbxki_resolve_params().

◆ dbxki_usage()

dbxki_usage ( )

Definition at line 91 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 206 of file run_job.php.

Referenced by dbx\dbxKi\dbxKiBundleService\describeBundle().

◆ $results

$results = array()

Definition at line 207 of file run_job.php.

Referenced by dbxki_resolve_params(), and dbxki_result_ref().

◆ 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 209 of file run_job.php.

◆ try

try
Initial value:
{
$job = dbxki_read_job($argv)
dbxki_read_job(array $argv)
Definition run_job.php:95

Definition at line 204 of file run_job.php.

Referenced by dbx\dbxKi\dbxKiCmsService\handle(), dbx\dbxKi\dbxKiBundleService\handleImport(), and dbx\dbxKi\dbxKiBriefingService\handleStylesSave().