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

Go to the source code of this file.

Variables

 $normalize
 $expectedBase = rtrim($normalize(realpath(dirname(__DIR__, 3))), '/') . '/'
 $base = $normalize(dbx()->get_base_dir())
 $files = $normalize(dbx()->get_file_dir())
if( $base !==$expectedBase) if($files !==$expectedBase . 'files/') $stored = dbx()->config_path_store($expectedBase . 'files/test/', true)
if($stored !=='files/test/') $resolved = $normalize(dbx()->config_path_resolve($stored))
if($resolved !==$expectedBase . 'files/test/') $config
 $cleanConfig = dbx()->get_system_obj('dbxConfigStore')->normalize_for_store($config)
if(array_keys( $cleanConfig[ 'db'] ?? array()) !==array( 'main')) if (dbx() ->error_type(E_WARNING) !=='E_WARNING'||dbx() ->error_type(-123) !=='E_UNKNOWN')

Variable Documentation

◆ $base

◆ $cleanConfig

$cleanConfig = dbx()->get_system_obj('dbxConfigStore')->normalize_for_store($config)

Definition at line 40 of file dbxApi_paths_test.php.

◆ $config

◆ $expectedBase

$expectedBase = rtrim($normalize(realpath(dirname(__DIR__, 3))), '/') . '/'

Definition at line 10 of file dbxApi_paths_test.php.

◆ $files

◆ $normalize

$normalize
Initial value:
= static function (string $path): string {
return str_replace('\\', '/', $path);
}

Definition at line 6 of file dbxApi_paths_test.php.

◆ $resolved

if ( $stored !=='files/test/') $resolved = $normalize(dbx()->config_path_resolve($stored))

◆ $stored

if($base !==$expectedBase) if ( $files !==$expectedBase . 'files/') $stored = dbx()->config_path_store($expectedBase . 'files/test/', true)

◆ if

if(array_keys($cleanConfig['db'] ?? array()) !==array('main')) if(dbx() ->error_type(E_WARNING) !=='E_WARNING'||dbx() ->error_type(-123) !=='E_UNKNOWN') ( dbx() ->error_type(E_WARNING) ! = = 'E_WARNING' || dbx()->error_type(-123) !== 'E_UNKNOWN')

Definition at line 46 of file dbxApi_paths_test.php.