Query\QueryParser
Utility Class to parse sql clauses for properly escaping identifiers
- // members
- public array $matches = ;
- // methods
- public void __construct()
- public array parseJoin()
- public string compileJoin()
- $matches
—
array
Regex matches - __construct() — Constructor/entry point into parser
- compileJoin() — Compiles a join condition after parsing
- parseJoin() — Parser method for setting the parse string
Synopsis
class QueryParser
{
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
60 | ShortVariable | Avoid variables with short names like $db. Configured minimum length is 3. |