OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
oxDebugDb Class Reference
+ Collaboration diagram for oxDebugDb:

Public Member Functions

 __construct ()
 getWarnings ()

Protected Member Functions

 _generateWarningsResult ($aInput)
 _checkMissingKeys ($sSql)
 _checkMess ($s1, $s2)
 _logToFile ($aWarnings)

Static Protected Member Functions

static _skipWhiteSpace ($sStr)
static _isSkipped ($sSql)
static _getSqlTemplate ($sSql)

Private Member Functions

 _missingKeysChecker ($aExplain)

Static Private Attributes

static $_aSkipSqls = array()

Detailed Description

class for parsing and retrieving warnings from adodb saved sql table

Definition at line 6 of file oxdebugdb.php.

Constructor & Destructor Documentation

oxDebugDb::__construct ( )

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

Definition at line 19 of file oxdebugdb.php.

Member Function Documentation

oxDebugDb::_checkMess (   $s1,
  $s2 
)
protected

return true if statements are similar

Parameters
string$s1statement one
string$s2statement two
Returns
boolean

Definition at line 232 of file oxdebugdb.php.

oxDebugDb::_checkMissingKeys (   $sSql)
protected

check missing keys - use explain return true on warning

Parameters
string$sSqlquery string
Returns
bool

Definition at line 158 of file oxdebugdb.php.

oxDebugDb::_generateWarningsResult (   $aInput)
protected

returns nice formatted array

Parameters
array$aInputmessages array
Returns
array

Definition at line 127 of file oxdebugdb.php.

static oxDebugDb::_getSqlTemplate (   $sSql)
staticprotected

strips sql down of its values

Parameters
string$sSqlsql to process
Returns
string

Definition at line 260 of file oxdebugdb.php.

static oxDebugDb::_isSkipped (   $sSql)
staticprotected

Checks if query is already in log file

Parameters
string$sSqlsql query to check
Returns
bool

Definition at line 42 of file oxdebugdb.php.

oxDebugDb::_logToFile (   $aWarnings)
protected

logs warnings to file

Parameters
array$aWarningswarnings

Definition at line 274 of file oxdebugdb.php.

oxDebugDb::_missingKeysChecker (   $aExplain)
private

check if remark of explain is not using keys true if not using

Parameters
array$aExplaindb explain response array
Returns
bool

Definition at line 185 of file oxdebugdb.php.

static oxDebugDb::_skipWhiteSpace (   $sStr)
staticprotected

Removes special chars (' ', "\t", "\r", "\n") from passed string

Parameters
string$sStrstring to cleanup
Returns
string

Definition at line 30 of file oxdebugdb.php.

oxDebugDb::getWarnings ( )

warning list generator

Returns
array

Definition at line 66 of file oxdebugdb.php.

Member Data Documentation

oxDebugDb::$_aSkipSqls = array()
staticprivate

Definition at line 14 of file oxdebugdb.php.


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