\PHPSQLParserUtils

This class implements some helper functions.

Summary

Methods
Properties
Constants
getLastOf()
toArray()
No public properties found
No constants found
preprint()
endsWith()
revokeQuotation()
removeParenthesisFromStart()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getLastOf()

getLastOf(  $array) 

Parameters

$array

toArray()

toArray(  $tokenList) 

translates an array of objects into an associative array

Parameters

$tokenList

preprint()

preprint(  $arr,   $return = false) 

Prints an array only if debug mode is on.

Parameters

$arr
$return

endsWith()

endsWith(string  $haystack, string  $needle) 

Ends the given string $haystack with the string $needle?

Parameters

string $haystack
string $needle

revokeQuotation()

revokeQuotation(  $sql) 

Revokes the quoting characters from an expression

Parameters

$sql

removeParenthesisFromStart()

removeParenthesisFromStart(  $token) 

This method removes parenthesis from start of the given string.

It removes also the associated closing parenthesis.

Parameters

$token