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

Go to the source code of this file.

Functions

 marketingDeFail (string $message, int $code)

Variables

 $_SERVER ['REQUEST_URI'] = '/dbxapp/'
 $_SERVER ['HTTP_HOST'] = 'localhost'
 $_SERVER ['HTTPS'] = 'on'
 $_SERVER ['SCRIPT_NAME'] = '/dbxapp/index.php'
const dbxSystem 'dbxWebApp'
const dbxRunAsAdmin 1
 $root = dirname(__DIR__, 4)
 $migrationFile = $root . '/dbx/modules/dbxContent/tools/restructure_marketing_de.php'
 $source = (string)file_get_contents($migrationFile)
if(strpos( $source, "PHP_SAPI !== 'cli'")===false||strpos( $source, "in_array('--apply'")===false||strpos( $source, ' $db->begin( $contentDd)')===false||strpos( $source, ' $db->rollback( $contentDd)')===false||strpos( $source, '/backup')===false) if(preg_match('/new\s+(?:PDO|SQLite3)\b|(?:PDO|SQLite3)::|->delete\s *\‍(/', $source)) $contentDatabase = $root . '/dbx/modules/dbx/db/dbxContent.db3'
if(!is_file($contentDatabase)||filesize($contentDatabase)===0) $db = dbx()->get_system_obj('dbxDB')
 $contentDd = \dbx\dbxContent\dbxContentLng::ddContent('de')
 $folderDd = \dbx\dbxContent\dbxContentLng::ddFolder('de')
 $rows
if(!is_array($rows)) $byId = array()
 $byPermalink = array()
foreach($rows as $row) $targets
foreach($targets as $permalink) $archiveIds
foreach($archiveIds as $id) $trash = $db->select1($folderDd, 19, 'id,name,parent_id,group_read', 0)
 if (!is_array( $trash)||(string)( $trash[ 'name'] ?? '') !=='trash'||(string)( $trash[ 'group_read'] ?? '') !=='admin')

Function Documentation

◆ marketingDeFail()

marketingDeFail ( string $message,
int $code )

Definition at line 17 of file dbxContentMarketingDeMigration_test.php.

Variable Documentation

◆ $_SERVER [1/4]

$_SERVER[ 'HTTP_HOST'] = 'localhost'

Definition at line 5 of file dbxContentMarketingDeMigration_test.php.

◆ $_SERVER [2/4]

$_SERVER[ 'HTTPS'] = 'on'

Definition at line 6 of file dbxContentMarketingDeMigration_test.php.

◆ $_SERVER [3/4]

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

Definition at line 4 of file dbxContentMarketingDeMigration_test.php.

◆ $_SERVER [4/4]

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

Definition at line 7 of file dbxContentMarketingDeMigration_test.php.

◆ $archiveIds

foreach ( $targets as $permalink) $archiveIds
Initial value:
= array(
2, 4, 5, 6, 8, 45, 47, 48, 51, 53, 56, 57, 58, 59, 60, 62,
63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
115, 116, 117, 118, 119, 120, 121, 122,
)

Definition at line 91 of file dbxContentMarketingDeMigration_test.php.

◆ $byId

if (!is_array( $rows)) $byId = array()

◆ $byPermalink

$byPermalink = array()

Definition at line 60 of file dbxContentMarketingDeMigration_test.php.

◆ $contentDatabase

if(strpos($source, "PHP_SAPI !== 'cli'")===false||strpos($source, "in_array('--apply'")===false||strpos($source, ' $db->begin($contentDd)')===false||strpos($source, ' $db->rollback($contentDd)')===false||strpos($source, '/backup')===false) if (preg_match('/new\s+(?:PDO|SQLite3)\b|(?:PDO|SQLite3)::|->delete\s *\‍(/', $source)) $contentDatabase ( ) = $root . '/dbx/modules/dbx/db/dbxContent.db3'

Definition at line 35 of file dbxContentMarketingDeMigration_test.php.

◆ $contentDd

◆ $db

if (!is_file( $contentDatabase)||filesize( $contentDatabase)===0) $db = dbx()->get_system_obj('dbxDB')

Definition at line 41 of file dbxContentMarketingDeMigration_test.php.

◆ $folderDd

◆ $migrationFile

$migrationFile = $root . '/dbx/modules/dbxContent/tools/restructure_marketing_de.php'

◆ $root

$root = dirname(__DIR__, 4)

Definition at line 12 of file dbxContentMarketingDeMigration_test.php.

◆ $rows

$rows
Initial value:
= $db->select(
'1=1',
'id,permalink,title,description,content,template,folder,activ,addmenu,group_read,meta_robots',
'id',
'ASC',
'',
0,
0,
0
)
Examples
dbx/modules/myInvoices/include/myInvoicesService.class.php.

Definition at line 44 of file dbxContentMarketingDeMigration_test.php.

Referenced by dbx\dbxShop\dbxShopRepository\allImages(), dbx\dbxShop\dbxShopRepository\attributeFilterDefinitions(), dbxDD\backup(), dbx\dbxShop\dbxShopRepository\catalogCandidates(), dbx\dbxShop\dbxShopRepository\channels(), dbx\dbxShop\dbxShopService\checkout(), dbxReport\fast_response_rows_json(), dbxDD\get_db_fields(), dbxDD\get_db_indexes(), dbxReport\get_report_rows_array(), dbx\dbxShop\dbxShopRepository\groups(), dbx\dbxShop\dbxShopRepository\imagesForProduct(), dbx\myLKW\myLKW_import\import(), dbx\dbxAdmin\dbxModuleRegistry\inspectAll(), dbx\dbxWorkflow\dbxWorkflowEngine\load_definition(), dbx\dbxWorkflow\dbxWorkflowModule\loadBindRecord(), dbx\dbxShop\dbxShopRepository\nextInvoiceNo(), dbx\dbxWorkflow\dbxWorkflowModule\optionsFromSource(), dbx\dbxShop\dbxShopRepository\orderChannelKeys(), dbx\dbxShop\dbxShopRepository\orderHistory(), dbx\dbxShop\dbxShopRepository\orderItems(), dbx\myInvoices\myInvoicesService\positions(), dbx\dbxShop\dbxShopRepository\products(), dbx\dbxShop\dbxShopRepository\productsByIds(), dbx\dbxKi\dbxKiBriefingService\renderStylesAdmin(), dbx\dbxWorkflow\dbxWorkflowBindRegistry\seedBind(), WorkflowDefinitionDbStub\select(), and dbx\dbxShop\dbxShopRepository\shippingGroups().

◆ $source

$source = (string)file_get_contents($migrationFile)

Definition at line 23 of file dbxContentMarketingDeMigration_test.php.

◆ $targets

foreach ( $rows as $row) $targets
Initial value:
= array(
'home', 'loesungen', 'cms-website', 'shop-multichannel',
'individuelle-anwendungen', 'intranet-portale', 'dbxki', 'plattform',
'pakete', 'referenzen', 'demo', 'entwickler', 'dokumentation', 'kontakt',
)

Definition at line 66 of file dbxContentMarketingDeMigration_test.php.

◆ $trash

foreach ( $archiveIds as $id) $trash = $db->select1($folderDd, 19, 'id,name,parent_id,group_read', 0)

Definition at line 107 of file dbxContentMarketingDeMigration_test.php.

◆ dbxRunAsAdmin

const dbxRunAsAdmin 1

Definition at line 10 of file dbxContentMarketingDeMigration_test.php.

◆ dbxSystem

const dbxSystem 'dbxWebApp'

Definition at line 9 of file dbxContentMarketingDeMigration_test.php.

◆ if

if(!is_array($trash)||(string)($trash['name'] ?? '') !=='trash'||(string)($trash['group_read'] ?? '') !=='admin') ( !is_array($trash)||(string)($trash['name'] ?? '') ! = = 'trash' || (string)($trash['group_read'] ?? '') !== 'admin')

Definition at line 108 of file dbxContentMarketingDeMigration_test.php.