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) | |
| dbxki_normalize_result | ( | string | $action, |
| array | $result ) |
Definition at line 120 of file run_job.php.
| dbxki_prepare_asset_file | ( | array | $params | ) |
Definition at line 76 of file run_job.php.
Referenced by dbxki_resolve_params().
| dbxki_read_job | ( | array | $argv | ) |
Definition at line 31 of file run_job.php.
References $argv, $source, dbxki_usage(), and exit.
| dbxki_resolve_params | ( | $value, | |
| array | $results ) |
Definition at line 94 of file run_job.php.
References $out, $results, $value, dbxki_prepare_asset_file(), dbxki_resolve_params(), and dbxki_result_ref().
Referenced by dbxki_resolve_params().
| 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 | ( | ) |
Definition at line 27 of file run_job.php.
Referenced by dbxki_read_job().
| $_SERVER[ 'HTTP_HOST'] = 'localhost' |
Definition at line 16 of file run_job.php.
| $_SERVER[ 'HTTPS'] = 'on' |
Definition at line 17 of file run_job.php.
| $_SERVER[ 'REQUEST_URI'] = '/dbxapp/' |
Definition at line 15 of file run_job.php.
| $_SERVER[ 'SCRIPT_NAME'] = '/dbxapp/index.php' |
Definition at line 18 of file run_job.php.
| $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 = new \dbx\dbxKi\dbxKiCmsService() |
Definition at line 142 of file run_job.php.
| $results = array() |
Definition at line 143 of file run_job.php.
Referenced by dbxki_resolve_params(), dbxki_result_ref(), dbx\dbxSetup\dbxInstallationService\provisionSchema(), and dbx\dbxSetup\dbxInstallationService\verifyBundledSchema().
| const dbxRunAsAdmin 1 |
Definition at line 21 of file run_job.php.
| const dbxSystem 'dbxWebApp' |
Definition at line 20 of file run_job.php.
| foreach($job['steps'] as $pos=> $step) | ( | $job as[ 'steps'], | |
| $step ) |
Definition at line 145 of file run_job.php.
| try |
Definition at line 140 of file run_job.php.