System requirements class.
Definition at line 6 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 125 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 accessable in current class |
Definition at line 140 of file oxsysrequirements.php.
oxSysRequirements._checkModRewrite | ( | $ | aHostInfo | ) | [protected] |
Checks if mod_rewrite extension is loaded. Checks for one address.
array | $aHostInfo host info to open socket |
Definition at line 473 of file oxsysrequirements.php.
oxSysRequirements._checkTemplateBlock | ( | $ | sTemplate, | |
$ | sBlockName | |||
) | [protected] |
check if given template contains the given block
string | $sTemplate template file name | |
string | $sBlockName block name |
Definition at line 976 of file oxsysrequirements.php.
oxSysRequirements._getAdditionalCheck | ( | ) | [protected] |
Additional sql: do not check collation for oxsysrequirements.$_aException columns
Definition at line 791 of file oxsysrequirements.php.
oxSysRequirements._getBytes | ( | $ | sBytes | ) | [protected] |
Parses and calculates given string form byte syze value
string | $sBytes string form byte value (64M, 32K etc) |
Definition at line 948 of file oxsysrequirements.php.
oxSysRequirements._getShopHostInfo | ( | ) | [protected] |
returns host, port, current script, ssl information as assotiative array, false on error
Definition at line 412 of file oxsysrequirements.php.
oxSysRequirements._getShopHostInfoFromConfig | ( | ) | [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 334 of file oxsysrequirements.php.
oxSysRequirements._getShopHostInfoFromServerVars | ( | ) | [protected] |
returns host, port, base dir, ssl information as assotiative array, false on error takes this info from _SERVER variable
Definition at line 389 of file oxsysrequirements.php.
oxSysRequirements._getShopSSLHostInfo | ( | ) | [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 427 of file oxsysrequirements.php.
oxSysRequirements._getShopSSLHostInfoFromConfig | ( | ) | [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 362 of file oxsysrequirements.php.
oxSysRequirements.checkAllowUrlFopen | ( | ) |
Checks if activated allow_url_fopen or fsockopen on port 80 possible
Definition at line 507 of file oxsysrequirements.php.
oxSysRequirements.checkBcMath | ( | ) |
Checks if bcmath extension is loaded
Definition at line 613 of file oxsysrequirements.php.
oxSysRequirements.checkBug53632 | ( | ) |
Version check for http://bugs.php.net/53632 Assumme that PHP versions < 5.3.5 and < 5.2.17 may have this issue, so informing users about possible issues PHP version 5.3.7 has security bug too.
Definition at line 223 of file oxsysrequirements.php.
oxSysRequirements.checkCollation | ( | ) |
Checks tables and columns (oxsysrequirements.$_aColumns) collation
Definition at line 805 of file oxsysrequirements.php.
oxSysRequirements.checkCurl | ( | ) |
Checks if curl extension is loaded
Definition at line 241 of file oxsysrequirements.php.
oxSysRequirements.checkDatabaseCluster | ( | ) |
Checks if database cluster is installed
Definition at line 843 of file oxsysrequirements.php.
oxSysRequirements.checkGdInfo | ( | ) |
Checks if GDlib extension is loaded
Definition at line 701 of file oxsysrequirements.php.
oxSysRequirements.checkIConv | ( | ) |
Checks if iconv extension is loaded
Definition at line 593 of file oxsysrequirements.php.
oxSysRequirements.checkIniSet | ( | ) |
oxSysRequirements.checkJSon | ( | ) |
Checks if JSON extension is loaded
Definition at line 583 of file oxsysrequirements.php.
oxSysRequirements.checkLibXml2 | ( | ) |
Checks if libxml2 is activated
Definition at line 563 of file oxsysrequirements.php.
oxSysRequirements.checkMbString | ( | ) |
Checks if mbstring extension is loaded
Definition at line 251 of file oxsysrequirements.php.
oxSysRequirements.checkMemoryLimit | ( | ) |
oxSysRequirements.checkModRewrite | ( | ) |
Checks if mod_rewrite extension is loaded. Checks for all address.
Definition at line 441 of file oxsysrequirements.php.
oxSysRequirements.checkMysqlConnect | ( | ) |
Checks if mysql5 extension is loaded.
Definition at line 643 of file oxsysrequirements.php.
oxSysRequirements.checkMysqlVersion | ( | $ | sVersion = null |
) |
Checks if current mysql version matches requirements ( >=5 )
string | $sVersion MySQL version |
Definition at line 678 of file oxsysrequirements.php.
oxSysRequirements.checkOpenSsl | ( | ) |
Checks if openssl extension is loaded
Definition at line 623 of file oxsysrequirements.php.
oxSysRequirements.checkPhp4Compat | ( | ) |
PHP4 compatibility mode must be set off: zend.ze1_compatibility_mode = Off
Definition at line 529 of file oxsysrequirements.php.
oxSysRequirements.checkPhpVersion | ( | ) |
Checks PHP version. PHP 5.2.0 or higher. Due to performance matters, PHP 5.2.6 recommended.
Definition at line 541 of file oxsysrequirements.php.
oxSysRequirements.checkPhpXml | ( | ) |
Checks if php-xml is activated ???
Definition at line 573 of file oxsysrequirements.php.
oxSysRequirements.checkRegisterGlobals | ( | ) |
Checks if register_globals are off/on. Should be off.
Definition at line 724 of file oxsysrequirements.php.
oxSysRequirements.checkRequestUri | ( | ) |
Checks if apache server variables REQUEST_URI or SCRIPT_URI are set
Definition at line 553 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 264 of file oxsysrequirements.php.
oxSysRequirements.checkSoap | ( | ) |
Checks if SOAP extension is loaded
Definition at line 633 of file oxsysrequirements.php.
oxSysRequirements.checkTokenizer | ( | ) |
Checks if tokenizer extension is loaded
Definition at line 603 of file oxsysrequirements.php.
oxSysRequirements.checkUnicodeSupport | ( | ) |
Checks if PCRE unicode support is turned off/on. Should be on.
Definition at line 853 of file oxsysrequirements.php.
oxSysRequirements.checkZendOptimizer | ( | ) |
Checks if Zend Optimizer extension is loaded
Just for displaying "green" light, because if ZEND Optimizer/Guard loader is not installed you will see some info screen instead of default setup.
Definition at line 758 of file oxsysrequirements.php.
oxSysRequirements.checkZendPlatformOrServer | ( | ) |
Checks if ZEND Platform Version 3.5 or Zend Server with Data Cache is installed
Definition at line 772 of file oxsysrequirements.php.
oxSysRequirements.getConfig | ( | ) |
oxSysRequirements.getMissingTemplateBlocks | ( | ) |
returns array of missing template block files: 1. checks db for registered blocks 2. checks each block if it exists in currently used theme templates returned array components are of form array(module name, block name, template file) only active (oxactive==1) blocks are checked
Definition at line 997 of file oxsysrequirements.php.
oxSysRequirements.getModuleInfo | ( | $ | sModule = null |
) |
Returns passed module state
string | $sModule module name to check |
Definition at line 910 of file oxsysrequirements.php.
oxSysRequirements.getReqInfoUrl | ( | $ | sIdent | ) |
Returns or prints url for info about missing web service configuration
string | $sIdent Module identifier |
Definition at line 928 of file oxsysrequirements.php.
oxSysRequirements.getRequiredModules | ( | ) |
oxSysRequirements.getSysReqStatus | ( | ) |
Checks system requirements status
Definition at line 863 of file oxsysrequirements.php.
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 887 of file oxsysrequirements.php.
oxSysRequirements.$_aColumns [protected] |
Definition at line 35 of file oxsysrequirements.php.
oxSysRequirements.$_aException [protected] |
array( 'OXDELIVERY' => 'OXDELTYPE', 'OXSELECTLIST' => 'OXIDENT')
Definition at line 27 of file oxsysrequirements.php.
oxSysRequirements.$_aInfoMap [protected] |
array( "php_version" => "PHP_version_at_least_5.2.0", "lib_xml2" => "LIB_XML2", "php_xml" => "DOM", "open_ssl" => "OpenSSL", "soap" => "SOAP", "j_son" => "JSON", "i_conv" => "ICONV", "tokenizer" => "Tokenizer", "mysql_connect" => "MySQL_client_connector_for_MySQL_5", "gd_info" => "GDlib_v2_.5Bv1.5D_incl._JPEG_support", "mb_string" => "mbstring", "bc_math" => "BCMath", "allow_url_fopen" => "allow_url_fopen_or_fsockopen_to_port_80", "php4_compat" => "Zend_compatibility_mode_must_be_off", "request_uri" => "REQUEST_URI_set", "ini_set" => "ini_set_allowed", "register_globals" => "register_globals_must_be_off", "memory_limit" => "PHP_Memory_limit_.28min._14MB.2C_30MB_recommended.29", "unicode_support" => "UTF-8_support", "mod_rewrite" => "apache_mod_rewrite_module", "server_permissions" => "Files_.26_Folder_Permission_Setup", "zend_optimizer" => "Zend_Optimizer", "bug53632" => "Not_recommended_PHP_versions", )
Definition at line 94 of file oxsysrequirements.php.
oxSysRequirements.$_aRequiredModules = null [protected] |
Definition at line 13 of file oxsysrequirements.php.
oxSysRequirements.$_blSysReqStatus = null [protected] |
Definition at line 20 of file oxsysrequirements.php.
oxSysRequirements.$_sReqInfoUrl = "http://www.oxidforge.org/wiki/Installation" [protected] |
Definition at line 87 of file oxsysrequirements.php.