Public Member Functions | Protected Member Functions | Protected Attributes

oxSysRequirements Class Reference

List of all members.

Public Member Functions

 __construct ()
 getRequiredModules ()
 checkCurl ()
 checkMbString ()
 checkServerPermissions ($sPath=null, $iMinPerm=777)
 checkModRewrite ()
 checkAllowUrlFopen ()
 checkPhp4Compat ()
 checkPhpVersion ()
 checkRequestUri ()
 checkLibXml2 ()
 checkPhpXml ()
 checkJSon ()
 checkIConv ()
 checkTokenizer ()
 checkBcMath ()
 checkMysqlConnect ()
 checkMysqlVersion ($sVersion=null)
 checkGdInfo ()
 checkIniSet ()
 checkRegisterGlobals ()
 checkMemoryLimit ()
 checkZendOptimizer ()
 checkZendPlatformOrServer ()
 checkCollation ()
 checkDatabaseCluster ()
 checkUnicodeSupport ()
 getSysReqStatus ()
 getSystemInfo ()
 getModuleInfo ($sModule=null)
 getReqInfoUrl ($sIdent)

Protected Member Functions

 _getAdditionalCheck ()
 _getBytes ($sBytes)

Protected Attributes

 $_aRequiredModules = null
 $_blSysReqStatus = null
 $_aException
 $_aColumns
 $_sReqInfoUrl = "http://www.oxidforge.org/wiki/Installation"
 $_aInfoMap

Detailed Description

System requirements class.

Definition at line 6 of file oxsysrequirements.php.


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 122 of file oxsysrequirements.php.


Member Function Documentation

oxSysRequirements._getAdditionalCheck (  )  [protected]

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

Returns:
string

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

oxSysRequirements.checkAllowUrlFopen (  ) 

Checks if activated allow_url_fopen or fsockopen on port 80 possible

Returns:
integer

Definition at line 315 of file oxsysrequirements.php.

oxSysRequirements.checkBcMath (  ) 

Checks if bcmath extension is loaded

Returns:
integer

Definition at line 421 of file oxsysrequirements.php.

oxSysRequirements.checkCollation (  ) 

Checks tables and columns (oxsysrequirements.$_aColumns) collation

Returns:
array

Definition at line 629 of file oxsysrequirements.php.

oxSysRequirements.checkCurl (  ) 

Checks if curl extension is loaded

Returns:
integer

Definition at line 179 of file oxsysrequirements.php.

oxSysRequirements.checkDatabaseCluster (  ) 

Checks if database cluster is installed

Returns:
integer

Definition at line 667 of file oxsysrequirements.php.

oxSysRequirements.checkGdInfo (  ) 

Checks if GDlib extension is loaded

Returns:
integer

Definition at line 488 of file oxsysrequirements.php.

oxSysRequirements.checkIConv (  ) 

Checks if iconv extension is loaded

Returns:
integer

Definition at line 401 of file oxsysrequirements.php.

oxSysRequirements.checkIniSet (  ) 

Checks if ini set is allowed

Returns:
integer

Definition at line 501 of file oxsysrequirements.php.

oxSysRequirements.checkJSon (  ) 

Checks if JSON extension is loaded

Returns:
integer

Definition at line 391 of file oxsysrequirements.php.

oxSysRequirements.checkLibXml2 (  ) 

Checks if libxml2 is activated

Returns:
integer

Definition at line 371 of file oxsysrequirements.php.

oxSysRequirements.checkMbString (  ) 

Checks if mbstring extension is loaded

Returns:
integer

Definition at line 189 of file oxsysrequirements.php.

oxSysRequirements.checkMemoryLimit (  ) 

Checks memory limit.

Returns:
integer

Definition at line 522 of file oxsysrequirements.php.

oxSysRequirements.checkModRewrite (  ) 

Checks if mod_rewrite extension is loaded

Returns:
integer

Definition at line 272 of file oxsysrequirements.php.

oxSysRequirements.checkMysqlConnect (  ) 

Checks if mysql5 extension is loaded.

Returns:
integer

Definition at line 431 of file oxsysrequirements.php.

oxSysRequirements.checkMysqlVersion ( sVersion = null  ) 

Checks if current mysql version matches requirements ( >=5 )

Parameters:
string $sVersion MySQL version
Returns:
int

Definition at line 465 of file oxsysrequirements.php.

oxSysRequirements.checkPhp4Compat (  ) 

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

Returns:
integer

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

oxSysRequirements.checkPhpXml (  ) 

Checks if php-xml is activated ???

Returns:
integer

Definition at line 381 of file oxsysrequirements.php.

oxSysRequirements.checkRegisterGlobals (  ) 

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

Returns:
integer

Definition at line 511 of file oxsysrequirements.php.

oxSysRequirements.checkRequestUri (  ) 

Checks if apache server variables REQUEST_URI or SCRIPT_URI are set

Returns:
integer

Definition at line 361 of file oxsysrequirements.php.

oxSysRequirements.checkServerPermissions ( sPath = null,
iMinPerm = 777 
)

Checks if permissions on servers are correctly setup

Parameters:
string $sPath check path [optional]
int $iMinPerm min permission level, default 777 [optional]
Returns:
int

Definition at line 202 of file oxsysrequirements.php.

oxSysRequirements.checkTokenizer (  ) 

Checks if tokenizer extension is loaded

Returns:
integer

Definition at line 411 of file oxsysrequirements.php.

oxSysRequirements.checkUnicodeSupport (  ) 

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

Returns:
integer

Definition at line 677 of file oxsysrequirements.php.

oxSysRequirements.checkZendOptimizer (  ) 

Checks if Zend Optimizer extension is loaded

Returns:
integer

Definition at line 545 of file oxsysrequirements.php.

oxSysRequirements.checkZendPlatformOrServer (  ) 

Checks if ZEND Platform Version 3.5 or Zend Server with Data Cache is installed

Returns:
integer

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

oxSysRequirements.getReqInfoUrl ( sIdent  ) 

Returns or prints url for info about missing web service configuration

Parameters:
string $sIdent Module identifier
Returns:
mixed

Definition at line 752 of file oxsysrequirements.php.

oxSysRequirements.getRequiredModules (  ) 

Sets system required modules

Returns:
array

Definition at line 131 of file oxsysrequirements.php.

oxSysRequirements.getSysReqStatus (  ) 

Checks system requirements status

Returns:
bool

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


Member Data Documentation

oxSysRequirements.$_aColumns [protected]

Definition at line 35 of file oxsysrequirements.php.

oxSysRequirements.$_aException [protected]
Initial value:
 array( 'OXDELIVERY'   => 'OXDELTYPE',
                                    'OXSELECTLIST' => 'OXIDENT')

Definition at line 27 of file oxsysrequirements.php.

oxSysRequirements.$_aInfoMap [protected]
Initial value:
 array( "php_version"        => "PHP_version_at_least_5.2.0",
                                     "lib_xml2"           => "LIB_XML2",
                                     "php_xml"            => "DOM",
                                     "j_son"              => "JSON",
                                     "i_conv"             => "ICONV",
                                     "tokenizer"          => "Tokenizer",
                                     "mysql_connect"      => "MySQL_module_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"
                                     
                                      )

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.


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