OXID eShop CE  4.9.9
 All Classes Files Functions Variables Pages
oxDiagnostics Class Reference

Public Member Functions

 setFileCheckerPathList ($aPathList)
 getFileCheckerPathList ()
 setFileCheckerExtensionList ($aExtList)
 getFileCheckerExtensionList ()
 setVersion ($sVersion)
 getVersion ()
 setEdition ($sEdition)
 getEdition ()
 setRevision ($sRevision)
 getRevision ()
 setShopLink ($sShopLink)
 getShopLink ()
 getShopDetails ()
 getPhpSelection ()
 getPhpDecoder ()
 getServerInfo ()
 isExecAllowed ()

Protected Member Functions

 _countRows ($sTable, $blMode)
 _getApacheVersion ()
 _getVirtualizationSystem ()
 _getDeviceList ($sSystemType)
 _getCpuAmount ()
 _getCpuMhz ()
 _getBogoMips ()
 _getMemoryTotal ()
 _getMemoryFree ()
 _getCpuModel ()
 _getDiskTotalSpace ()
 _getDiskFreeSpace ()
 _getPhpVersion ()
 _getMySqlServerInfo ()

Protected Attributes

 $_sEdition = ""
 $_sVersion = ""
 $_sRevision = ""
 $_sShopLink = ""
 $_aFileCheckerPathList
 $_aFileCheckerExtensionList = array('php', 'tpl')

Detailed Description

Diagnostic tool model Stores configuration and public diagnostic methods for shop diagnostics

Definition at line 9 of file oxdiagnostics.php.

Member Function Documentation

oxDiagnostics::_countRows (   $sTable,
  $blMode 
)
protected

counts result Rows

Parameters
string$sTabletable
boolean$blModemode
Returns
integer

Definition at line 227 of file oxdiagnostics.php.

oxDiagnostics::_getApacheVersion ( )
protected

Returns Apache version

Returns
string

Definition at line 343 of file oxdiagnostics.php.

oxDiagnostics::_getBogoMips ( )
protected

Returns BogoMIPS evaluation of processor

Returns
string

Definition at line 430 of file oxdiagnostics.php.

oxDiagnostics::_getCpuAmount ( )
protected

Returns amount of CPU units.

Returns
string

Definition at line 409 of file oxdiagnostics.php.

oxDiagnostics::_getCpuMhz ( )
protected

Returns CPU speed in Mhz

Returns
float

Definition at line 420 of file oxdiagnostics.php.

oxDiagnostics::_getCpuModel ( )
protected

Returns CPU model information

Returns
string

Definition at line 460 of file oxdiagnostics.php.

oxDiagnostics::_getDeviceList (   $sSystemType)
protected

Finds the list of system devices for given system type

Parameters
string$sSystemTypeSystem type.
Returns
string

Definition at line 399 of file oxdiagnostics.php.

oxDiagnostics::_getDiskFreeSpace ( )
protected

Returns free disk space

Returns
string

Definition at line 480 of file oxdiagnostics.php.

oxDiagnostics::_getDiskTotalSpace ( )
protected

Returns total disk space

Returns
string

Definition at line 470 of file oxdiagnostics.php.

oxDiagnostics::_getMemoryFree ( )
protected

Returns amount of free memory

Returns
string

Definition at line 450 of file oxdiagnostics.php.

oxDiagnostics::_getMemoryTotal ( )
protected

Returns total amount of memory

Returns
string

Definition at line 440 of file oxdiagnostics.php.

oxDiagnostics::_getMySqlServerInfo ( )
protected

Returns MySQL server Information

Returns
string

Definition at line 500 of file oxdiagnostics.php.

oxDiagnostics::_getPhpVersion ( )
protected

Returns PHP version

Returns
string

Definition at line 490 of file oxdiagnostics.php.

oxDiagnostics::_getVirtualizationSystem ( )
protected

Tries to find out which VM is used

Returns
string

Definition at line 359 of file oxdiagnostics.php.

oxDiagnostics::getEdition ( )

Edition getter

Returns
string

Definition at line 144 of file oxdiagnostics.php.

oxDiagnostics::getFileCheckerExtensionList ( )

getter for extensions of files to check

Returns
$this->_aFileCheckerExtensionList array

Definition at line 99 of file oxdiagnostics.php.

oxDiagnostics::getFileCheckerPathList ( )

getter for list of files and folders to check

Returns
$this->_aFileCheckerPathList array

Definition at line 79 of file oxdiagnostics.php.

oxDiagnostics::getPhpDecoder ( )

Returns the installed PHP devoder (like Zend Optimizer, Guard Loader)

Returns
string

Definition at line 276 of file oxdiagnostics.php.

oxDiagnostics::getPhpSelection ( )

Picks some pre-selected PHP configuration settings and returns them.

Returns
array

Definition at line 247 of file oxdiagnostics.php.

oxDiagnostics::getRevision ( )

Revision getter

Returns
string

Definition at line 166 of file oxdiagnostics.php.

oxDiagnostics::getServerInfo ( )

General server information We will use the exec command here several times. In order tro prevent stop on failure, use $this->isExecAllowed().

Returns
array

Definition at line 298 of file oxdiagnostics.php.

oxDiagnostics::getShopDetails ( )

Collects information on the shop, like amount of categories, articles, users

Returns
array

Definition at line 199 of file oxdiagnostics.php.

oxDiagnostics::getShopLink ( )

ShopLink getter

Returns
string

Definition at line 189 of file oxdiagnostics.php.

oxDiagnostics::getVersion ( )

Version getter

Returns
string

Definition at line 122 of file oxdiagnostics.php.

oxDiagnostics::isExecAllowed ( )

Determines, whether the exec() command is allowed or not.

Returns
boolean

Definition at line 387 of file oxdiagnostics.php.

oxDiagnostics::setEdition (   $sEdition)

Edition setter

Parameters
string$sEditionEdition

Definition at line 132 of file oxdiagnostics.php.

oxDiagnostics::setFileCheckerExtensionList (   $aExtList)

Setter for extensions of files to check

Parameters
array$aExtListList of extensions.

Definition at line 89 of file oxdiagnostics.php.

oxDiagnostics::setFileCheckerPathList (   $aPathList)

Setter for list of files and folders to check

Parameters
array$aPathListPath list.

Definition at line 69 of file oxdiagnostics.php.

oxDiagnostics::setRevision (   $sRevision)

Revision setter

Parameters
string$sRevisionrevision.

Definition at line 154 of file oxdiagnostics.php.

oxDiagnostics::setShopLink (   $sShopLink)

ShopLink setter

Parameters
string$sShopLinkShop link.

Definition at line 177 of file oxdiagnostics.php.

oxDiagnostics::setVersion (   $sVersion)

Version setter

Parameters
string$sVersionVersion.

Definition at line 110 of file oxdiagnostics.php.

Member Data Documentation

oxDiagnostics::$_aFileCheckerExtensionList = array('php', 'tpl')
protected

Definition at line 62 of file oxdiagnostics.php.

oxDiagnostics::$_aFileCheckerPathList
protected
Initial value:
array(
'bootstrap.php',
'index.php',
'oxid.php',
'oxseo.php',
'admin/',
'application/',
'bin/',
'core/',
'modules/',
)

Definition at line 45 of file oxdiagnostics.php.

oxDiagnostics::$_sEdition = ""
protected

Definition at line 17 of file oxdiagnostics.php.

oxDiagnostics::$_sRevision = ""
protected

Definition at line 31 of file oxdiagnostics.php.

oxDiagnostics::$_sShopLink = ""
protected

Definition at line 38 of file oxdiagnostics.php.

oxDiagnostics::$_sVersion = ""
protected

Definition at line 24 of file oxdiagnostics.php.


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