\QueryQuery_Parser

Utility Class to parse sql clauses for properly escaping identifiers

Summary

Methods
Properties
Constants
__construct()
compile_join()
$matches
No constants found
parse_join()
filter_array()
No protected properties found
N/A
No private methods found
$db
$match_patterns
N/A

Properties

$matches

$matches : array

Regex matches

Type

array

$match_patterns

$match_patterns : array

Regex patterns for various syntax components

Type

array

Methods

compile_join()

compile_join(string $condition) : string

Compiles a join condition after parsing

Parameters

string $condition

Returns

string

parse_join()

parse_join(string $sql) : array

Public parser method for setting the parse string

Parameters

string $sql

Returns

array

filter_array()

filter_array(array $array) : array

Returns a more useful match array

Parameters

array $array

Returns

array