oxSysRequirements Class Reference

List of all members.


Detailed Description

System requirements class.

Definition at line 6 of file oxsysrequirements.php.


Public Member Functions

 __construct ()
 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

Constructor & Destructor Documentation

oxSysRequirements.__construct (  ) 

Class constructor. The constructor is defined in order to be possible to call parent.__construct() in modules.

Returns:
null;

Definition at line 87 of file oxsysrequirements.php.


Member Function Documentation

oxSysRequirements.getRequiredModules (  ) 

Sets system required modules

Returns:
array

Definition at line 96 of file oxsysrequirements.php.

oxSysRequirements.checkMbString (  ) 

Checks if mbstring extension is loaded

Returns:
integer

Definition at line 140 of file oxsysrequirements.php.

oxSysRequirements.checkModRewrite (  ) 

Checks if mod_rewrite extension is loaded

Returns:
integer

Definition at line 150 of file oxsysrequirements.php.

oxSysRequirements.checkAllowUrlFopen (  ) 

Checks if activated allow_url_fopen or fsockopen on port 80 possible

Returns:
integer

Definition at line 189 of file oxsysrequirements.php.

oxSysRequirements.checkPhp4Compat (  ) 

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

Returns:
integer

Definition at line 211 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 223 of file oxsysrequirements.php.

oxSysRequirements.checkRequestUri (  ) 

Checks if apache server variables REQUEST_URI or SCRIPT_URI are set

Returns:
integer

Definition at line 235 of file oxsysrequirements.php.

oxSysRequirements.checkLibXml2 (  ) 

Checks if libxml2 is activated

Returns:
integer

Definition at line 245 of file oxsysrequirements.php.

oxSysRequirements.checkPhpXml (  ) 

Checks if php-xml is activated ???

Returns:
integer

Definition at line 255 of file oxsysrequirements.php.

oxSysRequirements.checkJSon (  ) 

Checks if JSON extension is loaded

Returns:
integer

Definition at line 265 of file oxsysrequirements.php.

oxSysRequirements.checkIConv (  ) 

Checks if iconv extension is loaded

Returns:
integer

Definition at line 275 of file oxsysrequirements.php.

oxSysRequirements.checkTokenizer (  ) 

Checks if tokenizer extension is loaded

Returns:
integer

Definition at line 285 of file oxsysrequirements.php.

oxSysRequirements.checkBcMath (  ) 

Checks if bcmath extension is loaded

Returns:
integer

Definition at line 295 of file oxsysrequirements.php.

oxSysRequirements.checkMysqlConnect (  ) 

Checks if mysql5 extension is loaded.

Returns:
integer

Definition at line 305 of file oxsysrequirements.php.

oxSysRequirements.checkGdInfo (  ) 

Checks if GDlib extension is loaded

Returns:
integer

Definition at line 330 of file oxsysrequirements.php.

oxSysRequirements.checkIniSet (  ) 

Checks if ini set is allowed

Returns:
integer

Definition at line 343 of file oxsysrequirements.php.

oxSysRequirements.checkRegisterGlobals (  ) 

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

Returns:
integer

Definition at line 353 of file oxsysrequirements.php.

oxSysRequirements.checkMemoryLimit (  ) 

Checks memory limit.

Returns:
integer

Definition at line 364 of file oxsysrequirements.php.

oxSysRequirements.checkZendOptimizer (  ) 

Checks if Zend Optimizer extension is loaded

Returns:
integer

Definition at line 387 of file oxsysrequirements.php.

oxSysRequirements.checkZendPlatform (  ) 

Checks if ZEND Platform Version 3.5 is installed

Returns:
integer

Definition at line 437 of file oxsysrequirements.php.

oxSysRequirements._getAdditionalCheck (  )  [protected]

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

Returns:
string

Definition at line 447 of file oxsysrequirements.php.

oxSysRequirements.checkCollation (  ) 

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

Returns:
array

Definition at line 461 of file oxsysrequirements.php.

oxSysRequirements.checkDatabaseCluster (  ) 

Checks if database cluster is installed

Returns:
integer

Definition at line 499 of file oxsysrequirements.php.

oxSysRequirements.checkUnicodeSupport (  ) 

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

Returns:
integer

Definition at line 509 of file oxsysrequirements.php.

oxSysRequirements.getSysReqStatus (  ) 

Checks system requirements status

Returns:
bool

Definition at line 519 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 543 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 566 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 584 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 Tue Aug 18 09:26:00 2009 for OXID eShop CE by  doxygen 1.5.5