\QueryQueryParser

Utility Class to parse sql clauses for properly escaping identifiers

Summary

Methods
Properties
Constants
__construct()
parseJoin()
compileJoin()
$matches
No constants found
filterArray()
No protected properties found
N/A
No private methods found
$db
$matchPatterns
N/A

Properties

$matches

$matches : array

Regex matches

Type

array

$matchPatterns

$matchPatterns : array

Regex patterns for various syntax components

Type

array

Methods

parseJoin()

parseJoin(string  $sql) : array

Parser method for setting the parse string

Parameters

string $sql

Returns

array

compileJoin()

compileJoin(string  $condition) : string

Compiles a join condition after parsing

Parameters

string $condition

Returns

string

filterArray()

filterArray(array  $array) : array

Returns a more useful match array

Parameters

array $array

Returns

array