Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Attributes

oxDebugDb Class Reference

Collaboration diagram for oxDebugDb:

List of all members.

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.

Returns:
null;

Definition at line 20 of file oxdebugdb.php.


Member Function Documentation

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 229 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 156 of file oxdebugdb.php.

oxDebugDb._generateWarningsResult ( aInput  )  [protected]

returns nice formatted array

Parameters:
array $aInput messages array
Returns:
array

Definition at line 126 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 257 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._logToFile ( aWarnings  )  [protected]

logs warnings to file

Parameters:
array $aWarnings warnings
Returns:
null

Definition at line 273 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 182 of file oxdebugdb.php.

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.

oxDebugDb.getWarnings (  ) 

warning list generator

Returns:
array

Definition at line 66 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: