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

Go to the source code of this file.

Variables

 $shopRoot = dirname(__DIR__)
 $projectModules = dirname(__DIR__, 2)
 $service = (string)file_get_contents($shopRoot . '/include/dbxShopService.class.php')
 $config = (string)file_get_contents($shopRoot . '/cfg/config.php')
 $admin = (string)file_get_contents($projectModules . '/dbxShop_admin/include/dbxShopAdmin.class.php')
 $fail
if(!str_contains( $config, "\$config['demo_notice_enabled'] = true;")) if(!str_contains($service, "\$this->settingsBool(\$this->shopConfig(), 'demo_notice_enabled', true)")) if(substr_count( $admin, "'demo_notice_enabled'")< 3||!str_contains( $admin, 'dbxContentPageCache::invalidateAllFullPages()')) foreach (array('', '_en', '_es') as $suffix)

Variable Documentation

◆ $admin

$admin = (string)file_get_contents($projectModules . '/dbxShop_admin/include/dbxShopAdmin.class.php')

Definition at line 9 of file shop_demo_notice_config_test.php.

◆ $config

$config = (string)file_get_contents($shopRoot . '/cfg/config.php')

Definition at line 8 of file shop_demo_notice_config_test.php.

◆ $fail

$fail
Initial value:
= static function(string $message, int $code): void {
fwrite(STDERR, "FAIL: $message\n");
exit($code);
}
exit
Definition index.php:146

Definition at line 11 of file shop_demo_notice_config_test.php.

◆ $projectModules

$projectModules = dirname(__DIR__, 2)

Definition at line 6 of file shop_demo_notice_config_test.php.

◆ $service

$service = (string)file_get_contents($shopRoot . '/include/dbxShopService.class.php')

Definition at line 7 of file shop_demo_notice_config_test.php.

◆ $shopRoot

$shopRoot = dirname(__DIR__)

Definition at line 5 of file shop_demo_notice_config_test.php.

◆ foreach

if(!str_contains($config, "\$config['demo_notice_enabled'] = true;")) if(!str_contains( $service, "\$this->settingsBool(\$this->shopConfig(), 'demo_notice_enabled', true)")) if(substr_count($admin, "'demo_notice_enabled'")< 3||!str_contains($admin, 'dbxContentPageCache::invalidateAllFullPages()')) foreach(array('', '_en', '_es') as $suffix) ( array('', '_en', '_es') as $suffix)

Definition at line 27 of file shop_demo_notice_config_test.php.