OXID eShop CE
6.5.2
|
Public Member Functions | |
__construct () | |
__call ($sMethod, $aArgs) | |
getConfig () | |
isAdmin () | |
getRequiredModules () | |
checkCurl () | |
checkMbString () | |
checkServerPermissions ($sPath=null, $iMinPerm=777) | |
checkModRewrite () | |
checkAllowUrlFopen () | |
checkFsockopen () | |
checkPhpVersion () | |
getPhpVersion () | |
checkRequestUri () | |
checkPhpXml () | |
checkJSon () | |
checkIConv () | |
checkTokenizer () | |
checkBcMath () | |
checkOpenSsl () | |
checkSoap () | |
checkMysqlConnect () | |
checkMysqlVersion ($installedVersion=null) | |
checkGdInfo () | |
checkIniSet () | |
checkMemoryLimit ($sMemLimit=null) | |
checkCollation () | |
checkDatabaseCluster () | |
checkUnicodeSupport () | |
checkFileUploads () | |
getSysReqStatus () | |
getSystemInfo () | |
getModuleInfo ($sModule=null) | |
getReqInfoUrl ($sIdent) | |
getMissingTemplateBlocks () | |
checkSessionAutostart () | |
Static Public Member Functions | |
static | filter ($systemRequirementsInfo, $filterFunction) |
static | canSetupContinue ($systemRequirementsInfo) |
static | iterateThroughSystemRequirementsInfo ($systemRequirementsInfo) |
Public Attributes | |
const | MODULE_STATUS_UNABLE_TO_DETECT = -1 |
const | MODULE_STATUS_BLOCKS_SETUP = 0 |
const | MODULE_STATUS_FITS_MINIMUM_REQUIREMENTS = 1 |
const | MODULE_STATUS_OK = 2 |
const | MODULE_GROUP_ID_SERVER_CONFIG = 'server_config' |
const | MODULE_ID_MOD_REWRITE = 'mod_rewrite' |
const | MODULE_ID_MYSQL_VERSION = 'mysql_version' |
Protected Member Functions | |
_getShopHostInfoFromConfig () | |
_getShopSSLHostInfoFromConfig () | |
_getShopHostInfoFromServerVars () | |
_getShopHostInfo () | |
_getShopSSLHostInfo () | |
_checkModRewrite ($aHostInfo) | |
_getAdditionalCheck () | |
_getBytes ($sBytes) | |
_checkTemplateBlock ($sTemplate, $sBlockName) | |
fetchBlockRecords () | |
_getMinimumMemoryLimit () | |
_getRecommendMemoryLimit () | |
getContainer () | |
Protected Attributes | |
$_aRequiredModules = null | |
$_blSysReqStatus = null | |
$_aException = ['OXDELIVERY' => 'OXDELTYPE', 'OXSELECTLIST' => 'OXIDENT'] | |
$_aColumns | |
$_sReqInfoUrl = "https://docs.oxid-esales.com/eshop/en/latest/installation/new-installation/server-and-system-requirements.html" | |
$_sPreparationInfoUrl = "https://docs.oxid-esales.com/eshop/en/latest/installation/new-installation/preparing-for-installation.html" | |
$_aInfoMap | |
$_aPreparationInfoMap | |
System requirements class.
OxidEsales\EshopCommunity\Core\SystemRequirements::__construct | ( | ) |
Class constructor. The constructor is defined in order to be possible to call parent::__construct() in modules.
OxidEsales\EshopCommunity\Core\SystemRequirements::__call | ( | $sMethod, | |
$aArgs | |||
) |
Only used for convenience in UNIT tests by doing so we avoid writing extended classes for testing protected or private methods
string | $sMethod | Methods name |
array | $aArgs | Argument array |
SystemComponentException | Throws an exception if the called method does not exist or is not accessible in current class |
|
protected |
Checks if mod_rewrite extension is loaded. Checks for one address.
array | $aHostInfo | host info to open socket |
|
protected |
check if given template contains the given block
string | $sTemplate | template file name |
string | $sBlockName | block name |
|
protected |
Additional sql: do not check collation for \OxidEsales\Eshop\Core\SystemRequirements::$_aException columns
|
protected |
Parses and calculates given string form byte size value
string | $sBytes | string form byte value (64M, 32K etc) |
|
protected |
Return minimum memory limit by edition.
|
protected |
Return recommend memory limit by edition.
|
protected |
returns host, port, current script, ssl information as assotiative array, false on error
|
protected |
returns host, port, base dir, ssl information as assotiative array, false on error takes this info from eShop config.inc.php (via oxConfig class)
|
protected |
returns host, port, base dir, ssl information as assotiative array, false on error takes this info from _SERVER variable
|
protected |
returns host, port, current script, ssl information as assotiative array, false on error Takes ssl address from config so important only in admin.
|
protected |
returns host, port, base dir, ssl information as assotiative array, false on error takes this info from eShop config.inc.php (via oxConfig class)
|
static |
Returns true if given module state is acceptable for setup process to continue.
array | $systemRequirementsInfo |
OxidEsales\EshopCommunity\Core\SystemRequirements::checkAllowUrlFopen | ( | ) |
Checks if activated allow_url_fopen and fsockopen on port 80 possible
OxidEsales\EshopCommunity\Core\SystemRequirements::checkBcMath | ( | ) |
Checks if bcmath extension is loaded
OxidEsales\EshopCommunity\Core\SystemRequirements::checkCollation | ( | ) |
Checks tables and columns (\OxidEsales\Eshop\Core\SystemRequirements::$_aColumns) collation
OxidEsales\EshopCommunity\Core\SystemRequirements::checkCurl | ( | ) |
Checks if curl extension is loaded
OxidEsales\EshopCommunity\Core\SystemRequirements::checkDatabaseCluster | ( | ) |
Checks if database cluster is installed
OxidEsales\EshopCommunity\Core\SystemRequirements::checkFileUploads | ( | ) |
Checks if php_admin_flag file_uploads is ON
OxidEsales\EshopCommunity\Core\SystemRequirements::checkFsockopen | ( | ) |
Check if fsockopen on port 80 possible
OxidEsales\EshopCommunity\Core\SystemRequirements::checkGdInfo | ( | ) |
Checks if GDlib extension is loaded
OxidEsales\EshopCommunity\Core\SystemRequirements::checkIConv | ( | ) |
Checks if iconv extension is loaded
OxidEsales\EshopCommunity\Core\SystemRequirements::checkIniSet | ( | ) |
Checks if ini set is allowed
OxidEsales\EshopCommunity\Core\SystemRequirements::checkJSon | ( | ) |
Checks if JSON extension is loaded
OxidEsales\EshopCommunity\Core\SystemRequirements::checkMbString | ( | ) |
Checks if mbstring extension is loaded
OxidEsales\EshopCommunity\Core\SystemRequirements::checkMemoryLimit | ( | $sMemLimit = null | ) |
Checks memory limit.
string | $sMemLimit | memory limit to compare with requirements |
OxidEsales\EshopCommunity\Core\SystemRequirements::checkModRewrite | ( | ) |
Checks if mod_rewrite extension is loaded. Checks for all address.
OxidEsales\EshopCommunity\Core\SystemRequirements::checkMysqlConnect | ( | ) |
Checks if mysql5 extension is loaded.
OxidEsales\EshopCommunity\Core\SystemRequirements::checkMysqlVersion | ( | $installedVersion = null | ) |
Checks if current mysql version matches requirements
string | $installedVersion | MySQL version |
OxidEsales\EshopCommunity\Core\SystemRequirements::checkOpenSsl | ( | ) |
Checks if openssl extension is loaded
OxidEsales\EshopCommunity\Core\SystemRequirements::checkPhpVersion | ( | ) |
OxidEsales\EshopCommunity\Core\SystemRequirements::checkPhpXml | ( | ) |
Check if DOM extension is loaded
OxidEsales\EshopCommunity\Core\SystemRequirements::checkRequestUri | ( | ) |
Checks if apache server variables REQUEST_URI or SCRIPT_URI are set
OxidEsales\EshopCommunity\Core\SystemRequirements::checkServerPermissions | ( | $sPath = null , |
|
$iMinPerm = 777 |
|||
) |
Checks if permissions on servers are correctly setup
string | $sPath | check path [optional] |
int | $iMinPerm | min permission level, default 777 [optional] |
OxidEsales\EshopCommunity\Core\SystemRequirements::checkSessionAutostart | ( | ) |
Check if correct AutoStart setting.
OxidEsales\EshopCommunity\Core\SystemRequirements::checkSoap | ( | ) |
Checks if SOAP extension is loaded
OxidEsales\EshopCommunity\Core\SystemRequirements::checkTokenizer | ( | ) |
Checks if tokenizer extension is loaded
OxidEsales\EshopCommunity\Core\SystemRequirements::checkUnicodeSupport | ( | ) |
Checks if PCRE unicode support is turned off/on. Should be on.
|
protected |
Fetch the active template blocks for the active shop and the active theme.
|
static |
Apply given filter function to all iterations of SystemRequirementInfo array.
array | $systemRequirementsInfo | |
\Closure | $filterFunction | Filter function used for the update of actual values; Function will receive the same arguments as provided from iterateThroughSystemRequirementsInfo method. |
OxidEsales\EshopCommunity\Core\SystemRequirements::getConfig | ( | ) |
Returns config instance
|
protected |
OxidEsales\EshopCommunity\Core\SystemRequirements::getMissingTemplateBlocks | ( | ) |
returns array of missing template block files:
OxidEsales\EshopCommunity\Core\SystemRequirements::getModuleInfo | ( | $sModule = null | ) |
Returns passed module state
string | $sModule | module name to check |
OxidEsales\EshopCommunity\Core\SystemRequirements::getPhpVersion | ( | ) |
Gets PHP version.
OxidEsales\EshopCommunity\Core\SystemRequirements::getReqInfoUrl | ( | $sIdent | ) |
Returns or prints url for info about missing web service configuration
string | $sIdent | Module identifier |
OxidEsales\EshopCommunity\Core\SystemRequirements::getRequiredModules | ( | ) |
Sets system required modules
OxidEsales\EshopCommunity\Core\SystemRequirements::getSysReqStatus | ( | ) |
Checks system requirements status
OxidEsales\EshopCommunity\Core\SystemRequirements::getSystemInfo | ( | ) |
Runs through modules array and checks if current system fits requirements. Returns array with module info: array( $sGroup, $sModuleName, $sModuleState ): $sGroup - group of module $sModuleName - name of checked module $sModuleState - module state: -1 - unable to datect, should not block 0 - missing, blocks setup 1 - fits min requirements 2 - exists required or better
OxidEsales\EshopCommunity\Core\SystemRequirements::isAdmin | ( | ) |
Possibility to mock isAdmin() function as we do not extend oxsuperconfig.
|
static |
Iterates through given SystemRequirementsInfo returning three items:
array | $systemRequirementsInfo |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const OxidEsales\EshopCommunity\Core\SystemRequirements::MODULE_GROUP_ID_SERVER_CONFIG = 'server_config' |
const OxidEsales\EshopCommunity\Core\SystemRequirements::MODULE_ID_MOD_REWRITE = 'mod_rewrite' |
const OxidEsales\EshopCommunity\Core\SystemRequirements::MODULE_ID_MYSQL_VERSION = 'mysql_version' |
const OxidEsales\EshopCommunity\Core\SystemRequirements::MODULE_STATUS_BLOCKS_SETUP = 0 |
const OxidEsales\EshopCommunity\Core\SystemRequirements::MODULE_STATUS_FITS_MINIMUM_REQUIREMENTS = 1 |
const OxidEsales\EshopCommunity\Core\SystemRequirements::MODULE_STATUS_OK = 2 |
const OxidEsales\EshopCommunity\Core\SystemRequirements::MODULE_STATUS_UNABLE_TO_DETECT = -1 |