OXID eShop CE
4.9.5
|
Public Member Functions | |
__construct () | |
__call ($sMethod, $aArgs) | |
getConfig () | |
isAdmin () | |
getRequiredModules () | |
checkBug53632 () | |
checkCurl () | |
checkMbString () | |
checkServerPermissions ($sPath=null, $iMinPerm=777) | |
checkModRewrite () | |
checkAllowUrlFopen () | |
checkPhp4Compat () | |
checkPhpVersion () | |
getPhpVersion () | |
checkRequestUri () | |
checkLibXml2 () | |
checkPhpXml () | |
checkJSon () | |
checkIConv () | |
checkTokenizer () | |
checkBcMath () | |
checkOpenSsl () | |
checkSoap () | |
checkMysqlConnect () | |
checkMysqlVersion ($sVersion=null) | |
checkGdInfo () | |
checkIniSet () | |
checkRegisterGlobals () | |
checkMagicQuotesGpc () | |
checkMemoryLimit ($sMemLimit=null) | |
checkCollation () | |
checkDatabaseCluster () | |
checkUnicodeSupport () | |
checkFileUploads () | |
getSysReqStatus () | |
getSystemInfo () | |
getModuleInfo ($sModule=null) | |
getReqInfoUrl ($sIdent) | |
getMissingTemplateBlocks () | |
checkSessionAutostart () |
Protected Member Functions | |
_getPhpIntSize () | |
_getShopHostInfoFromConfig () | |
_getShopSSLHostInfoFromConfig () | |
_getShopHostInfoFromServerVars () | |
_getShopHostInfo () | |
_getShopSSLHostInfo () | |
_checkModRewrite ($aHostInfo) | |
_getAdditionalCheck () | |
_getBytes ($sBytes) | |
_checkTemplateBlock ($sTemplate, $sBlockName) | |
_getMinimumMemoryLimit () | |
_getRecommendMemoryLimit () |
Protected Attributes | |
$_aRequiredModules = null | |
$_blSysReqStatus = null | |
$_aException = array('OXDELIVERY' => 'OXDELTYPE', 'OXSELECTLIST' => 'OXIDENT') | |
$_aColumns | |
$_sReqInfoUrl = "http://www.oxidforge.org/wiki/Installation" | |
$_aInfoMap |
System requirements class.
Definition at line 9 of file oxsysrequirements.php.
oxSysRequirements::__construct | ( | ) |
Class constructor. The constructor is defined in order to be possible to call parent::__construct() in modules.
Definition at line 144 of file oxsysrequirements.php.
oxSysRequirements::__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 |
oxSystemComponentException | Throws an exception if the called method does not exist or is not accessible in current class |
Definition at line 160 of file oxsysrequirements.php.
|
protected |
Checks if mod_rewrite extension is loaded. Checks for one address.
array | $aHostInfo | host info to open socket |
Definition at line 518 of file oxsysrequirements.php.
|
protected |
check if given template contains the given block
string | $sTemplate | template file name |
string | $sBlockName | block name |
Definition at line 1070 of file oxsysrequirements.php.
|
protected |
Additional sql: do not check collation for oxsysrequirements::$_aException columns
Definition at line 861 of file oxsysrequirements.php.
|
protected |
Parses and calculates given string form byte syze value
string | $sBytes | string form byte value (64M, 32K etc) |
Definition at line 1039 of file oxsysrequirements.php.
|
protected |
Return minimum memory limit by edition.
Definition at line 1152 of file oxsysrequirements.php.
|
protected |
Returns PHP consntant PHP_INT_SIZE
Definition at line 134 of file oxsysrequirements.php.
|
protected |
Return recommend memory limit by edition.
Definition at line 1164 of file oxsysrequirements.php.
|
protected |
returns host, port, current script, ssl information as assotiative array, false on error
Definition at line 456 of file oxsysrequirements.php.
|
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)
Definition at line 374 of file oxsysrequirements.php.
|
protected |
returns host, port, base dir, ssl information as assotiative array, false on error takes this info from _SERVER variable
Definition at line 432 of file oxsysrequirements.php.
|
protected |
returns host, port, current script, ssl information as assotiative array, false on error Takes ssl address from config so important only in admin.
Definition at line 471 of file oxsysrequirements.php.
|
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)
Definition at line 403 of file oxsysrequirements.php.
oxSysRequirements::checkAllowUrlFopen | ( | ) |
Checks if activated allow_url_fopen or fsockopen on port 80 possible
Definition at line 554 of file oxsysrequirements.php.
oxSysRequirements::checkBcMath | ( | ) |
Checks if bcmath extension is loaded
Definition at line 683 of file oxsysrequirements.php.
oxSysRequirements::checkBug53632 | ( | ) |
Version check for http://bugs.php.net/53632 Assumme that PHP versions < 5.3.5 may have this issue, so informing users about possible issues PHP version 5.3.7 has security bug too.
Definition at line 259 of file oxsysrequirements.php.
oxSysRequirements::checkCollation | ( | ) |
Checks tables and columns (oxsysrequirements::$_aColumns) collation
Definition at line 876 of file oxsysrequirements.php.
oxSysRequirements::checkCurl | ( | ) |
Checks if curl extension is loaded
Definition at line 280 of file oxsysrequirements.php.
oxSysRequirements::checkDatabaseCluster | ( | ) |
Checks if database cluster is installed
Definition at line 912 of file oxsysrequirements.php.
oxSysRequirements::checkFileUploads | ( | ) |
Checks if php_admin_flag file_uploads is ON
Definition at line 932 of file oxsysrequirements.php.
oxSysRequirements::checkGdInfo | ( | ) |
Checks if GDlib extension is loaded
Definition at line 776 of file oxsysrequirements.php.
oxSysRequirements::checkIConv | ( | ) |
Checks if iconv extension is loaded
Definition at line 663 of file oxsysrequirements.php.
oxSysRequirements::checkIniSet | ( | ) |
oxSysRequirements::checkJSon | ( | ) |
Checks if JSON extension is loaded
Definition at line 653 of file oxsysrequirements.php.
oxSysRequirements::checkLibXml2 | ( | ) |
oxSysRequirements::checkMagicQuotesGpc | ( | ) |
Checks if magic_quotes_gpc are off/on. Should be off.
Definition at line 812 of file oxsysrequirements.php.
oxSysRequirements::checkMbString | ( | ) |
Checks if mbstring extension is loaded
Definition at line 290 of file oxsysrequirements.php.
oxSysRequirements::checkMemoryLimit | ( | $sMemLimit = null | ) |
Checks memory limit.
string | $sMemLimit | memory limit to compare with requirements |
Definition at line 828 of file oxsysrequirements.php.
oxSysRequirements::checkModRewrite | ( | ) |
Checks if mod_rewrite extension is loaded. Checks for all address.
Definition at line 486 of file oxsysrequirements.php.
oxSysRequirements::checkMysqlConnect | ( | ) |
Checks if mysql5 extension is loaded.
Definition at line 713 of file oxsysrequirements.php.
oxSysRequirements::checkMysqlVersion | ( | $sVersion = null | ) |
Checks if current mysql version matches requirements ( >=5 )
string | $sVersion | MySQL version |
Definition at line 753 of file oxsysrequirements.php.
oxSysRequirements::checkOpenSsl | ( | ) |
Checks if openssl extension is loaded
Definition at line 693 of file oxsysrequirements.php.
oxSysRequirements::checkPhp4Compat | ( | ) |
PHP4 compatibility mode must be set off: zend.ze1_compatibility_mode = Off
Definition at line 577 of file oxsysrequirements.php.
oxSysRequirements::checkPhpVersion | ( | ) |
Checks PHP version. < PHP 5.3.0 - red. PHP 5.3.0-5.3.24 - yellow. PHP 5.3.25 or higher - green.
Definition at line 592 of file oxsysrequirements.php.
oxSysRequirements::checkPhpXml | ( | ) |
Checks if php-xml is activated ???
Definition at line 643 of file oxsysrequirements.php.
oxSysRequirements::checkRegisterGlobals | ( | ) |
Checks if register_globals are off/on. Should be off.
Definition at line 800 of file oxsysrequirements.php.
oxSysRequirements::checkRequestUri | ( | ) |
Checks if apache server variables REQUEST_URI or SCRIPT_URI are set
Definition at line 623 of file oxsysrequirements.php.
oxSysRequirements::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] |
Definition at line 303 of file oxsysrequirements.php.
oxSysRequirements::checkSessionAutostart | ( | ) |
Check if correct AutoStart setting.
Definition at line 1140 of file oxsysrequirements.php.
oxSysRequirements::checkSoap | ( | ) |
Checks if SOAP extension is loaded
Definition at line 703 of file oxsysrequirements.php.
oxSysRequirements::checkTokenizer | ( | ) |
Checks if tokenizer extension is loaded
Definition at line 673 of file oxsysrequirements.php.
oxSysRequirements::checkUnicodeSupport | ( | ) |
Checks if PCRE unicode support is turned off/on. Should be on.
Definition at line 922 of file oxsysrequirements.php.
oxSysRequirements::getConfig | ( | ) |
oxSysRequirements::getMissingTemplateBlocks | ( | ) |
returns array of missing template block files:
Definition at line 1096 of file oxsysrequirements.php.
oxSysRequirements::getModuleInfo | ( | $sModule = null | ) |
Returns passed module state
string | $sModule | module name to check |
Definition at line 1001 of file oxsysrequirements.php.
oxSysRequirements::getPhpVersion | ( | ) |
oxSysRequirements::getReqInfoUrl | ( | $sIdent | ) |
Returns or prints url for info about missing web service configuration
string | $sIdent | Module identifier |
Definition at line 1019 of file oxsysrequirements.php.
oxSysRequirements::getRequiredModules | ( | ) |
oxSysRequirements::getSysReqStatus | ( | ) |
oxSysRequirements::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
Definition at line 977 of file oxsysrequirements.php.
oxSysRequirements::isAdmin | ( | ) |
Possibility to mock isAdmin() function as we do not extend oxsuperconfig.
Definition at line 191 of file oxsysrequirements.php.
|
protected |
Definition at line 38 of file oxsysrequirements.php.
|
protected |
Definition at line 31 of file oxsysrequirements.php.
|
protected |
Definition at line 99 of file oxsysrequirements.php.
|
protected |
Definition at line 17 of file oxsysrequirements.php.
|
protected |
Definition at line 24 of file oxsysrequirements.php.
|
protected |
Definition at line 92 of file oxsysrequirements.php.