\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

__construct()

__construct(\Query\Query_Builder $db)

Constructor/entry point into parser

Parameters

\Query\Query_Builder $db

compile_join()

compile_join(string $condition) : string

Compiles a join condition after parsing

Parameters

string $condition

Returns

string

parse_join()

parse_join(string $sql)

Public parser method for seting the parse string

Parameters

string $sql

filter_array()

filter_array(array $array) : array

Returns a more useful match array

Parameters

array $array

Returns

array