|
OXID eShop CE
6.1.0
|
Classes | |
| class | BootstrapConfigFileReader |
Functions | |
| oxTriggerOfflinePageDisplay () | |
| writeToLog ($message) | |
Variables | |
| const | INSTALLATION_ROOT_PATH dirname(__DIR__) |
| const | OX_BASE_PATH INSTALLATION_ROOT_PATH . DIRECTORY_SEPARATOR . 'source' . DIRECTORY_SEPARATOR |
| const | OX_LOG_FILE OX_BASE_PATH . 'log' . DIRECTORY_SEPARATOR . 'oxideshop.log' |
| const | OX_OFFLINE_FILE OX_BASE_PATH . 'offline.html' |
| const | VENDOR_PATH INSTALLATION_ROOT_PATH . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR |
| if(!is_dir(OX_BASE_PATH . 'Core')) | else |
| $configMissing = !is_readable(OX_BASE_PATH . "config.inc.php") | |
| $bootstrapConfigFileReader = new \BootstrapConfigFileReader() | |
| $configFile = new \OxidEsales\Eshop\Core\ConfigFile(OX_BASE_PATH . "config.inc.php") | |
| $debugMode = (bool) \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Core\ConfigFile::class)->getVar('iDebug') | |
| if ( @is_readable(OX_BASE_PATH . 'modules/functions.php')) | |
| oxTriggerOfflinePageDisplay | ( | ) |
Bulletproof offline page loader
| writeToLog | ( | $message | ) |
| string | $message |
| $bootstrapConfigFileReader = new \BootstrapConfigFileReader() |
Turn on display errors for debug mode
| $configFile = new \OxidEsales\Eshop\Core\ConfigFile(OX_BASE_PATH . "config.inc.php") |
Store the shop configuration in the Registry prior including the custom bootstrap functionality. Like this the shop configuration is available there.
| $configMissing = !is_readable(OX_BASE_PATH . "config.inc.php") |
Ensure shop config and autoload files are available.
| $debugMode = (bool) \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Core\ConfigFile::class)->getVar('iDebug') |
Set exception handler before including modules/functions.php so it can be overwritten easiliy by shop operators.
| if (!is_dir(OX_BASE_PATH . 'Core')) else |
Where CORE_AUTOLOADER_PATH points depends on how OXID eShop has been installed. If it is installed as part of a compilation, the directory 'Core', where the auto load classes are located, does not reside inside OX_BASE_PATH, but inside VENDOR_PATH.
| if(@is_readable(OX_BASE_PATH . 'modules/functions.php')) |
Generic utility method file. The global object factory function oxNew is defined here.Custom bootstrap functionality.The functions defined conditionally in this file may have been overwritten in 'modules/functions.php', so their functionality may have changed completely.
| const INSTALLATION_ROOT_PATH dirname(__DIR__) |
| const OX_BASE_PATH INSTALLATION_ROOT_PATH . DIRECTORY_SEPARATOR . 'source' . DIRECTORY_SEPARATOR |
| const OX_LOG_FILE OX_BASE_PATH . 'log' . DIRECTORY_SEPARATOR . 'oxideshop.log' |
| const OX_OFFLINE_FILE OX_BASE_PATH . 'offline.html' |
| const VENDOR_PATH INSTALLATION_ROOT_PATH . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR |