OXID eShop CE  4.10.8
 All Classes Namespaces 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

Deprecated:
since v5.3.0 (2016-06-07). The SQL logging feature is deprecated. This feature will be removed.

Definition at line 8 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 21 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 234 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 160 of file oxdebugdb.php.

oxDebugDb::_generateWarningsResult (   $aInput)
protected

returns nice formatted array

Parameters
array$aInputmessages array
Returns
array

Definition at line 129 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 262 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 44 of file oxdebugdb.php.

oxDebugDb::_logToFile (   $aWarnings)
protected

logs warnings to file

Parameters
array$aWarningswarnings

Definition at line 276 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 187 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 32 of file oxdebugdb.php.

oxDebugDb::getWarnings ( )

warning list generator

Returns
array

Definition at line 68 of file oxdebugdb.php.

Member Data Documentation

oxDebugDb::$_aSkipSqls = array()
staticprivate

Definition at line 16 of file oxdebugdb.php.


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