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() |
class for parsing and retrieving warnings from adodb saved sql table
Definition at line 6 of file oxdebugdb.php.
| oxDebugDb.__construct | ( | ) |
Class constructor. The constructor is defined in order to be possible to call parent.__construct() in modules.
Definition at line 20 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 229 of file oxdebugdb.php.
| oxDebugDb._checkMissingKeys | ( | $ | sSql | ) | [protected] |
check missing keys - use explain return true on warning
| string | $sSql query string |
Definition at line 156 of file oxdebugdb.php.
| oxDebugDb._generateWarningsResult | ( | $ | aInput | ) | [protected] |
returns nice formatted array
| array | $aInput messages array |
Definition at line 126 of file oxdebugdb.php.
| static oxDebugDb._getSqlTemplate | ( | $ | sSql | ) | [static, protected] |
strips sql down of its values
| string | $sSql sql to process |
Definition at line 257 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 43 of file oxdebugdb.php.
| oxDebugDb._logToFile | ( | $ | aWarnings | ) | [protected] |
logs warnings to file
| array | $aWarnings warnings |
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
| array | $aExplain db explain response array |
Definition at line 182 of file oxdebugdb.php.
| static oxDebugDb._skipWhiteSpace | ( | $ | sStr | ) | [static, protected] |
Removes special chars (' ', "\t", "\r", "\n") from passed string
| string | $sStr string to cleanup |
Definition at line 31 of file oxdebugdb.php.
| oxDebugDb.getWarnings | ( | ) |
oxDebugDb.$_aSkipSqls = array() [static, private] |
Definition at line 13 of file oxdebugdb.php.
1.7.1