oxSysRequirements Class Reference

List of all members.


Detailed Description

System requirements class.

Definition at line 6 of file oxsysrequirements.php.


Public Member Functions

 getRequiredModules ()
 checkMbString ()
 checkModRewrite ()
 checkAllowUrlFopen ()
 checkPhp4Compat ()
 checkPhpVersion ()
 checkRequestUri ()
 checkLibXml2 ()
 checkPhpXml ()
 checkJSon ()
 checkIConv ()
 checkTokenizer ()
 checkBcMath ()
 checkMysqlConnect ()
 checkGdInfo ()
 checkIniSet ()
 checkRegisterGlobals ()
 checkMemoryLimit ()
 checkZendOptimizer ()
 checkZendPlatform ()
 checkCollation ()
 checkDatabaseCluster ()
 checkUnicodeSupport ()
 getSysReqStatus ()
 getSystemInfo ()
 getModuleInfo ($sModule=null)

Protected Member Functions

 _getAdditionalCheck ()
 _getBytes ($sBytes)

Protected Attributes

 $_aRequiredModules = null
 $_blSysReqStatus = null
 $_aException
 $_aColumns

Member Function Documentation

oxSysRequirements.getRequiredModules (  ) 

Sets system required modules

Returns:
array

Definition at line 87 of file oxsysrequirements.php.

oxSysRequirements.checkMbString (  ) 

Checks if mbstring extension is loaded

Returns:
integer

Definition at line 131 of file oxsysrequirements.php.

oxSysRequirements.checkModRewrite (  ) 

Checks if mod_rewrite extension is loaded

Returns:
integer

Definition at line 141 of file oxsysrequirements.php.

oxSysRequirements.checkAllowUrlFopen (  ) 

Checks if activated allow_url_fopen or fsockopen on port 80 possible

Returns:
integer

Definition at line 180 of file oxsysrequirements.php.

oxSysRequirements.checkPhp4Compat (  ) 

PHP4 compatibility mode must be set off: zend.ze1_compatibility_mode = Off

Returns:
integer

Definition at line 202 of file oxsysrequirements.php.

oxSysRequirements.checkPhpVersion (  ) 

Checks PHP version. PHP 5.2.0 or higher. Due to performance matters, PHP 5.2.6 recommended.

Returns:
integer

Definition at line 214 of file oxsysrequirements.php.

oxSysRequirements.checkRequestUri (  ) 

Checks if apache server variables REQUEST_URI or SCRIPT_URI are set

Returns:
integer

Definition at line 226 of file oxsysrequirements.php.

oxSysRequirements.checkLibXml2 (  ) 

Checks if libxml2 is activated

Returns:
integer

Definition at line 236 of file oxsysrequirements.php.

oxSysRequirements.checkPhpXml (  ) 

Checks if php-xml is activated ???

Returns:
integer

Definition at line 246 of file oxsysrequirements.php.

oxSysRequirements.checkJSon (  ) 

Checks if JSON extension is loaded

Returns:
integer

Definition at line 256 of file oxsysrequirements.php.

oxSysRequirements.checkIConv (  ) 

Checks if iconv extension is loaded

Returns:
integer

Definition at line 266 of file oxsysrequirements.php.

oxSysRequirements.checkTokenizer (  ) 

Checks if tokenizer extension is loaded

Returns:
integer

Definition at line 276 of file oxsysrequirements.php.

oxSysRequirements.checkBcMath (  ) 

Checks if bcmath extension is loaded

Returns:
integer

Definition at line 286 of file oxsysrequirements.php.

oxSysRequirements.checkMysqlConnect (  ) 

Checks if mysql5 extension is loaded.

Returns:
integer

Definition at line 296 of file oxsysrequirements.php.

oxSysRequirements.checkGdInfo (  ) 

Checks if GDlib extension is loaded

Returns:
integer

Definition at line 317 of file oxsysrequirements.php.

oxSysRequirements.checkIniSet (  ) 

Checks if ini set is allowed

Returns:
integer

Definition at line 330 of file oxsysrequirements.php.

oxSysRequirements.checkRegisterGlobals (  ) 

Checks if register_globals are off/on. Should be off.

Returns:
integer

Definition at line 340 of file oxsysrequirements.php.

oxSysRequirements.checkMemoryLimit (  ) 

Checks memory limit.

Returns:
integer

Definition at line 351 of file oxsysrequirements.php.

oxSysRequirements.checkZendOptimizer (  ) 

Checks if Zend Optimizer extension is loaded

Returns:
integer

Definition at line 374 of file oxsysrequirements.php.

oxSysRequirements.checkZendPlatform (  ) 

Checks if ZEND Platform Version 3.5 is installed

Returns:
integer

Definition at line 384 of file oxsysrequirements.php.

oxSysRequirements._getAdditionalCheck (  )  [protected]

Additional sql: do not check collation for oxsysrequirements::$_aException columns

Returns:
string

Definition at line 394 of file oxsysrequirements.php.

oxSysRequirements.checkCollation (  ) 

Checks tables and columns (oxsysrequirements::$_aColumns) collation

Returns:
array

Definition at line 408 of file oxsysrequirements.php.

oxSysRequirements.checkDatabaseCluster (  ) 

Checks if database cluster is installed

Returns:
integer

Definition at line 444 of file oxsysrequirements.php.

oxSysRequirements.checkUnicodeSupport (  ) 

Checks if PCRE unicode support is turned off/on. Should be on.

Returns:
integer

Definition at line 454 of file oxsysrequirements.php.

oxSysRequirements.getSysReqStatus (  ) 

Checks system requirements status

Returns:
bool

Definition at line 464 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

Returns:
array $aSysInfo

Definition at line 487 of file oxsysrequirements.php.

oxSysRequirements.getModuleInfo ( sModule = null  ) 

Returns passed module state

Parameters:
string $sModule module name to check
Returns:
integer $iModStat

Definition at line 510 of file oxsysrequirements.php.

oxSysRequirements._getBytes ( sBytes  )  [protected]

Parses and calculates given string form byte syze value

Parameters:
string $sBytes string form byte value (64M, 32K etc)
Returns:
int

Definition at line 583 of file oxsysrequirements.php.


Member Data Documentation

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.$_aException [protected]

Initial value:

 array( 'OXDELIVERY'   => 'OXDELTYPE',
                                    'OXSELECTLIST' => 'OXIDENT')

Definition at line 27 of file oxsysrequirements.php.

oxSysRequirements.$_aColumns [protected]

Definition at line 35 of file oxsysrequirements.php.


The documentation for this class was generated from the following file:

Generated on Wed Apr 22 12:32:48 2009 for OXID eShop CE by  doxygen 1.5.5