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

Go to the source code of this file.

Variables

 $base = dirname(__DIR__, 4)
 $_SERVER ['REQUEST_URI'] = '/dbxapp-docs/'
 $_SERVER ['HTTP_HOST'] = 'localhost'
 $_SERVER ['HTTPS'] = 'on'
 $_SERVER ['SCRIPT_NAME'] = '/dbxapp-docs/index.php'
const dbxSystem 'dbxWebApp'
const dbxRunAsAdmin 1
 $force = in_array('--force', $argv ?? array(), true)
 $db = dbx()->get_system_obj('dbxDB')
 $dd = dbx()->get_system_obj('dbxDD')
 $schema = array()
foreach(array('content_de', 'content_en', 'content_es') as $name) $failed = array_filter($schema, static fn(array $state): bool => ($state['status'] ?? '') !== 'finished')
if($failed !==array()) $service = new \dbx\dbxDocs\dbxDocsContentProvision($db, $base, $force)
 $result = $service->run()

Variable Documentation

◆ $_SERVER [1/4]

$_SERVER[ 'HTTP_HOST'] = 'localhost'

Definition at line 7 of file provision_docs_content.php.

◆ $_SERVER [2/4]

$_SERVER[ 'HTTPS'] = 'on'

Definition at line 8 of file provision_docs_content.php.

◆ $_SERVER [3/4]

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

Definition at line 6 of file provision_docs_content.php.

◆ $_SERVER [4/4]

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

Definition at line 9 of file provision_docs_content.php.

◆ $base

$base = dirname(__DIR__, 4)

Definition at line 4 of file provision_docs_content.php.

◆ $db

$db = dbx()->get_system_obj('dbxDB')

Definition at line 19 of file provision_docs_content.php.

◆ $dd

$dd = dbx()->get_system_obj('dbxDD')

Definition at line 20 of file provision_docs_content.php.

◆ $failed

foreach (array( 'content_de', 'content_en', 'content_es') as $name) $failed = array_filter($schema, static fn(array $state): bool => ($state['status'] ?? '') !== 'finished')

Definition at line 35 of file provision_docs_content.php.

◆ $force

$force = in_array('--force', $argv ?? array(), true)

Definition at line 18 of file provision_docs_content.php.

Referenced by dbx\dbxAdmin\dbxUpdateService\check().

◆ $result

$result = $service->run()

Definition at line 42 of file provision_docs_content.php.

◆ $schema

$schema = array()

Definition at line 22 of file provision_docs_content.php.

◆ $service

if ( $failed !==array()) $service = new \dbx\dbxDocs\dbxDocsContentProvision($db, $base, $force)

Definition at line 41 of file provision_docs_content.php.

◆ dbxRunAsAdmin

const dbxRunAsAdmin 1

Definition at line 12 of file provision_docs_content.php.

◆ dbxSystem

const dbxSystem 'dbxWebApp'

Definition at line 11 of file provision_docs_content.php.