OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Application\Model\Diagnostics 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 = ['php', 'tpl']
 

Detailed Description

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

Member Function Documentation

◆ _countRows()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_countRows (   $sTable,
  $blMode 
)
protected

counts result Rows

Parameters
string$sTabletable
boolean$blModemode
Returns
integer

◆ _getApacheVersion()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getApacheVersion ( )
protected

Returns Apache version

Returns
string

◆ _getBogoMips()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getBogoMips ( )
protected

Returns BogoMIPS evaluation of processor

Returns
string

◆ _getCpuAmount()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getCpuAmount ( )
protected

Returns amount of CPU units.

Returns
string

◆ _getCpuMhz()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getCpuMhz ( )
protected

Returns CPU speed in Mhz

Returns
float

◆ _getCpuModel()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getCpuModel ( )
protected

Returns CPU model information

Returns
string

◆ _getDeviceList()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getDeviceList (   $sSystemType)
protected

Finds the list of system devices for given system type

Parameters
string$sSystemTypeSystem type.
Returns
string

◆ _getDiskFreeSpace()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getDiskFreeSpace ( )
protected

Returns free disk space

Returns
string

◆ _getDiskTotalSpace()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getDiskTotalSpace ( )
protected

Returns total disk space

Returns
string

◆ _getMemoryFree()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getMemoryFree ( )
protected

Returns amount of free memory

Returns
string

◆ _getMemoryTotal()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getMemoryTotal ( )
protected

Returns total amount of memory

Returns
string

◆ _getMySqlServerInfo()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getMySqlServerInfo ( )
protected

Returns MySQL server Information

Returns
string

◆ _getPhpVersion()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getPhpVersion ( )
protected

Returns PHP version

Returns
string

◆ _getVirtualizationSystem()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::_getVirtualizationSystem ( )
protected

Tries to find out which VM is used

Returns
string

◆ getEdition()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::getEdition ( )

Edition getter

Returns
string

◆ getFileCheckerExtensionList()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::getFileCheckerExtensionList ( )

getter for extensions of files to check

Deprecated:
since v6.3 (2018-06-04); This functionality will be removed completely.
Returns
array

◆ getFileCheckerPathList()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::getFileCheckerPathList ( )

getter for list of files and folders to check

Returns
array
Deprecated:
since v6.3 (2018-06-04); This functionality will be removed completely.

◆ getPhpDecoder()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::getPhpDecoder ( )

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

Returns
string

◆ getPhpSelection()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::getPhpSelection ( )

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

Returns
array

◆ getRevision()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::getRevision ( )

Revision getter

Deprecated:
since v6.0.0 (2017-12-04); This functionality will be removed completely
Returns
bool|string

◆ getServerInfo()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::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

◆ getShopDetails()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::getShopDetails ( )

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

Returns
array

◆ getShopLink()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::getShopLink ( )

ShopLink getter

Returns
string

◆ getVersion()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::getVersion ( )

Version getter

Returns
string

◆ isExecAllowed()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::isExecAllowed ( )

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

Returns
boolean

◆ setEdition()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::setEdition (   $sEdition)

Edition setter

Parameters
string$sEditionEdition

◆ setFileCheckerExtensionList()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::setFileCheckerExtensionList (   $aExtList)

Setter for extensions of files to check

Parameters
array$aExtListList of extensions.
Deprecated:
since v6.3 (2018-06-04); This functionality will be removed completely.

◆ setFileCheckerPathList()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::setFileCheckerPathList (   $aPathList)

Setter for list of files and folders to check

Parameters
array$aPathListPath list.
Deprecated:
since v6.3 (2018-06-04); This functionality will be removed completely.

◆ setRevision()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::setRevision (   $sRevision)

Revision setter

Deprecated:
since v6.0.0 (2017-12-04); This functionality will be removed completely
Parameters
string$sRevisionrevision.

◆ setShopLink()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::setShopLink (   $sShopLink)

ShopLink setter

Parameters
string$sShopLinkShop link.

◆ setVersion()

OxidEsales\EshopCommunity\Application\Model\Diagnostics::setVersion (   $sVersion)

Version setter

Parameters
string$sVersionVersion.

Member Data Documentation

◆ $_aFileCheckerExtensionList

OxidEsales\EshopCommunity\Application\Model\Diagnostics::$_aFileCheckerExtensionList = ['php', 'tpl']
protected

◆ $_aFileCheckerPathList

OxidEsales\EshopCommunity\Application\Model\Diagnostics::$_aFileCheckerPathList
protected
Initial value:
= [
'bootstrap.php',
'index.php',
'oxid.php',
'oxseo.php',
'admin/',
'Application/',
'bin/',
'Core/',
'modules/',
]

◆ $_sEdition

OxidEsales\EshopCommunity\Application\Model\Diagnostics::$_sEdition = ""
protected

◆ $_sRevision

OxidEsales\EshopCommunity\Application\Model\Diagnostics::$_sRevision = ""
protected

◆ $_sShopLink

OxidEsales\EshopCommunity\Application\Model\Diagnostics::$_sShopLink = ""
protected

◆ $_sVersion

OxidEsales\EshopCommunity\Application\Model\Diagnostics::$_sVersion = ""
protected

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