oxDebugDb Class Reference

Collaboration diagram for oxDebugDb:

Collaboration graph
[legend]

List of all members.


Detailed Description

class for parsing and retrieving warnings from adodb saved sql table

Definition at line 6 of file oxdebugdb.php.


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()

Constructor & Destructor Documentation

oxDebugDb.__construct (  ) 

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

Returns:
null;

Definition at line 20 of file oxdebugdb.php.


Member Function Documentation

static oxDebugDb._skipWhiteSpace ( sStr  )  [static, protected]

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

Parameters:
string $sStr string to cleanup
Returns:
string

Definition at line 31 of file oxdebugdb.php.

static oxDebugDb._isSkipped ( sSql  )  [static, protected]

Checks if query is allready in log file

Parameters:
string $sSql sql query to check
Returns:
bool

Definition at line 43 of file oxdebugdb.php.

oxDebugDb.getWarnings (  ) 

warning list generator

Returns:
array

Definition at line 64 of file oxdebugdb.php.

oxDebugDb._generateWarningsResult ( aInput  )  [protected]

returns nice formatted array

Parameters:
array $aInput messages array
Returns:
array

Definition at line 120 of file oxdebugdb.php.

oxDebugDb._checkMissingKeys ( sSql  )  [protected]

check missing keys - use explain return true on warning

Parameters:
string $sSql query string
Returns:
bool

Definition at line 150 of file oxdebugdb.php.

oxDebugDb._missingKeysChecker ( aExplain  )  [private]

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

Parameters:
array $aExplain db explain response array
Returns:
bool

Definition at line 176 of file oxdebugdb.php.

oxDebugDb._checkMess ( s1,
s2 
) [protected]

return true if statements are similar

Parameters:
string $s1 statement one
string $s2 statement two
Returns:
boolean

Definition at line 219 of file oxdebugdb.php.

static oxDebugDb._getSqlTemplate ( sSql  )  [static, protected]

strips sql down of its values

Parameters:
string $sSql sql to process
Returns:
string

Definition at line 247 of file oxdebugdb.php.

oxDebugDb._logToFile ( aWarnings  )  [protected]

logs warnings to file

Parameters:
array $aWarnings warnings
Returns:
null

Definition at line 263 of file oxdebugdb.php.


Member Data Documentation

oxDebugDb.$_aSkipSqls = array() [static, private]

Definition at line 13 of file oxdebugdb.php.


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

Generated on Tue Aug 18 09:24:21 2009 for OXID eShop CE by  doxygen 1.5.5