Definition at line 6 of file oxdebugdb.php.
Public Member Functions | |
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() |
static oxDebugDb._skipWhiteSpace | ( | $ | sStr | ) | [static, protected] |
Removes special chars (' ', "\t", "\r", "\n") from passed string
string | $sStr string to cleanup |
Definition at line 22 of file oxdebugdb.php.
static oxDebugDb._isSkipped | ( | $ | sSql | ) | [static, protected] |
Checks if query is allready in log file
string | $sSql sql query to check |
Definition at line 34 of file oxdebugdb.php.
oxDebugDb.getWarnings | ( | ) |
oxDebugDb._generateWarningsResult | ( | $ | aInput | ) | [protected] |
returns nice formatted array
array | $aInput messages array |
Definition at line 111 of file oxdebugdb.php.
oxDebugDb._checkMissingKeys | ( | $ | sSql | ) | [protected] |
check missing keys - use explain return true on warning
string | $sSql query string |
Definition at line 141 of file oxdebugdb.php.
oxDebugDb._missingKeysChecker | ( | $ | aExplain | ) | [private] |
check if remark of explain is not using keys true if not using
array | $aExplain db explain response array |
Definition at line 167 of file oxdebugdb.php.
oxDebugDb._checkMess | ( | $ | s1, | |
$ | s2 | |||
) | [protected] |
return true if statements are similar
string | $s1 statement one | |
string | $s2 statement two |
Definition at line 210 of file oxdebugdb.php.
static oxDebugDb._getSqlTemplate | ( | $ | sSql | ) | [static, protected] |
strips sql down of its values
string | $sSql sql to process |
Definition at line 238 of file oxdebugdb.php.
oxDebugDb._logToFile | ( | $ | aWarnings | ) | [protected] |
logs warnings to file
array | $aWarnings warnings |
Definition at line 254 of file oxdebugdb.php.
oxDebugDb.$_aSkipSqls = array() [static, private] |
Definition at line 13 of file oxdebugdb.php.