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') | |
| marketingDeFail | ( | string | $message, |
| int | $code ) |
Definition at line 17 of file dbxContentMarketingDeMigration_test.php.
| $_SERVER[ 'HTTP_HOST'] = 'localhost' |
Definition at line 5 of file dbxContentMarketingDeMigration_test.php.
| $_SERVER[ 'HTTPS'] = 'on' |
Definition at line 6 of file dbxContentMarketingDeMigration_test.php.
| $_SERVER[ 'REQUEST_URI'] = '/dbxapp/' |
Definition at line 4 of file dbxContentMarketingDeMigration_test.php.
| $_SERVER[ 'SCRIPT_NAME'] = '/dbxapp/index.php' |
Definition at line 7 of file dbxContentMarketingDeMigration_test.php.
| foreach ( $targets as $permalink) $archiveIds |
Definition at line 91 of file dbxContentMarketingDeMigration_test.php.
Definition at line 59 of file dbxContentMarketingDeMigration_test.php.
Referenced by dbx\dbxShop\dbxShopRepository\productsByIds().
| $byPermalink = array() |
Definition at line 60 of file dbxContentMarketingDeMigration_test.php.
| 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 = \dbx\dbxContent\dbxContentLng::ddContent('de') |
Definition at line 42 of file dbxContentMarketingDeMigration_test.php.
| if (!is_file( $contentDatabase)||filesize( $contentDatabase)===0) $db = dbx()->get_system_obj('dbxDB') |
Definition at line 41 of file dbxContentMarketingDeMigration_test.php.
| $folderDd = \dbx\dbxContent\dbxContentLng::ddFolder('de') |
Definition at line 43 of file dbxContentMarketingDeMigration_test.php.
| $migrationFile = $root . '/dbx/modules/dbxContent/tools/restructure_marketing_de.php' |
Definition at line 22 of file dbxContentMarketingDeMigration_test.php.
Referenced by dbx\dbxAdmin\dbxDatabaseMigrationService\discover().
| $root = dirname(__DIR__, 4) |
Definition at line 12 of file dbxContentMarketingDeMigration_test.php.
| $rows |
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 = (string)file_get_contents($migrationFile) |
Definition at line 23 of file dbxContentMarketingDeMigration_test.php.
Definition at line 66 of file dbxContentMarketingDeMigration_test.php.
| 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.
| const dbxRunAsAdmin 1 |
Definition at line 10 of file dbxContentMarketingDeMigration_test.php.
| const dbxSystem 'dbxWebApp' |
Definition at line 9 of file dbxContentMarketingDeMigration_test.php.
| 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.