OXID eShop CE  4.8.11
 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$sTable,@paramboolean $blMode
Returns
integer

Definition at line 225 of file oxdiagnostics.php.

oxDiagnostics::_getApacheVersion ( )
protected

Returns Apache version

Returns
string

Definition at line 346 of file oxdiagnostics.php.

oxDiagnostics::_getBogoMips ( )
protected

Returns BogoMIPS evaluation of processor

Returns
string

Definition at line 432 of file oxdiagnostics.php.

oxDiagnostics::_getCpuAmount ( )
protected

Returns amount of CPU units.

Returns
string

Definition at line 411 of file oxdiagnostics.php.

oxDiagnostics::_getCpuMhz ( )
protected

Returns CPU speed in Mhz

Returns
float

Definition at line 422 of file oxdiagnostics.php.

oxDiagnostics::_getCpuModel ( )
protected

Returns CPU model information

Returns
string

Definition at line 462 of file oxdiagnostics.php.

oxDiagnostics::_getDeviceList (   $sSystemType)
protected

Finds the list of system devices for given system type

Parameters
$sSystemType
Returns
string

Definition at line 401 of file oxdiagnostics.php.

oxDiagnostics::_getDiskFreeSpace ( )
protected

Returns free disk space

Returns
string

Definition at line 482 of file oxdiagnostics.php.

oxDiagnostics::_getDiskTotalSpace ( )
protected

Returns total disk space

Returns
string

Definition at line 472 of file oxdiagnostics.php.

oxDiagnostics::_getMemoryFree ( )
protected

Returns amount of free memory

Returns
string

Definition at line 452 of file oxdiagnostics.php.

oxDiagnostics::_getMemoryTotal ( )
protected

Returns total amount of memory

Returns
string

Definition at line 442 of file oxdiagnostics.php.

oxDiagnostics::_getMySqlServerInfo ( )
protected

Returns MySQL server Information

Returns
string

Definition at line 502 of file oxdiagnostics.php.

oxDiagnostics::_getPhpVersion ( )
protected

Returns PHP version

Returns
string

Definition at line 492 of file oxdiagnostics.php.

oxDiagnostics::_getVirtualizationSystem ( )
protected

Tries to find out which VM is used

Returns
string

Definition at line 362 of file oxdiagnostics.php.

oxDiagnostics::getEdition ( )

Edition getter

Returns
string

Definition at line 143 of file oxdiagnostics.php.

oxDiagnostics::getFileCheckerExtensionList ( )

getter for extensions of files to check

Returns
$this->_aFileCheckerExtensionList array

Definition at line 98 of file oxdiagnostics.php.

oxDiagnostics::getFileCheckerPathList ( )

getter for list of files and folders to check

Returns
$this->_aFileCheckerPathList array

Definition at line 78 of file oxdiagnostics.php.

oxDiagnostics::getPhpDecoder ( )

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

Returns
string

Definition at line 275 of file oxdiagnostics.php.

oxDiagnostics::getPhpSelection ( )

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

Returns
array

Definition at line 245 of file oxdiagnostics.php.

oxDiagnostics::getRevision ( )

Revision getter

Returns
string

Definition at line 165 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 300 of file oxdiagnostics.php.

oxDiagnostics::getShopDetails ( )

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

Returns
array

Definition at line 198 of file oxdiagnostics.php.

oxDiagnostics::getShopLink ( )

ShopLink getter

Returns
string

Definition at line 188 of file oxdiagnostics.php.

oxDiagnostics::getVersion ( )

Version getter

Returns
string

Definition at line 121 of file oxdiagnostics.php.

oxDiagnostics::isExecAllowed ( )

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

Returns
boolean

Definition at line 390 of file oxdiagnostics.php.

oxDiagnostics::setEdition (   $sEdition)

Edition setter

Parameters
$sEditionstring

Definition at line 131 of file oxdiagnostics.php.

oxDiagnostics::setFileCheckerExtensionList (   $aExtList)

Setter for extensions of files to check

Parameters
$aExtListarray

Definition at line 88 of file oxdiagnostics.php.

oxDiagnostics::setFileCheckerPathList (   $aPathList)

Setter for list of files and folders to check

Parameters
$aPathListarray

Definition at line 68 of file oxdiagnostics.php.

oxDiagnostics::setRevision (   $sRevision)

Revision setter

Parameters
$sRevisionstring

Definition at line 153 of file oxdiagnostics.php.

oxDiagnostics::setShopLink (   $sShopLink)

ShopLink setter

Parameters
$sShopLinkstring

Definition at line 176 of file oxdiagnostics.php.

oxDiagnostics::setVersion (   $sVersion)

Version setter

Parameters
$sVersionstring

Definition at line 109 of file oxdiagnostics.php.

Member Data Documentation

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

Definition at line 61 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 44 of file oxdiagnostics.php.

oxDiagnostics::$_sEdition = ""
protected

Definition at line 16 of file oxdiagnostics.php.

oxDiagnostics::$_sRevision = ""
protected

Definition at line 30 of file oxdiagnostics.php.

oxDiagnostics::$_sShopLink = ""
protected

Definition at line 37 of file oxdiagnostics.php.

oxDiagnostics::$_sVersion = ""
protected

Definition at line 23 of file oxdiagnostics.php.


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