Method |
Description |
|
__construct ( String | boolean $sql = false, boolean $calcPositions = false, array $options = [] ) |
Constructor. It simply calls the parse() function. |
|
addCustomFunction ( String $token ) : null |
Add a custom function to the parser. no return value |
|
getCustomFunctions ( ) : array |
Returns the list of custom functions |
|
parse ( String $sql, boolean $calcPositions = false ) : array |
It parses the given SQL statement and generates a detailled
output array for every part of the statement. The method can
also generate [position] fields within the output, which hold
the character position for every statement part. The calculation
of the positions needs some time, if you don't need positions in
your application, set the parameter to false. |
|
removeCustomFunction ( String $token ) : null |
Remove a custom function from the parser. no return value |
|