Documentation TYPO3 par Ameos |
Public Member Functions | |
parseSQL ($parseString) | |
parseSELECT ($parseString) | |
parseUPDATE ($parseString) | |
parseINSERT ($parseString) | |
parseDELETE ($parseString) | |
parseEXPLAIN ($parseString) | |
parseCREATETABLE ($parseString) | |
parseALTERTABLE ($parseString) | |
parseDROPTABLE ($parseString) | |
parseCREATEDATABASE ($parseString) | |
parseFieldList (&$parseString, $stopRegex='') | |
parseFromTables (&$parseString, $stopRegex='') | |
parseWhereClause (&$parseString, $stopRegex='') | |
parseFieldDef (&$parseString, $stopRegex='') | |
nextPart (&$parseString, $regex, $trimAll=FALSE) | |
getValue (&$parseString, $comparator='') | |
getValueInQuotes (&$parseString, $quote) | |
parseStripslashes ($str) | |
compileAddslashes ($str) | |
parseError ($msg, $restQuery) | |
trimSQL ($str) | |
compileSQL ($components) | |
compileSELECT ($components) | |
compileUPDATE ($components) | |
compileINSERT ($components) | |
compileDELETE ($components) | |
compileCREATETABLE ($components) | |
compileALTERTABLE ($components) | |
compileFieldList ($selectFields) | |
compileFromTables ($tablesArray) | |
compileWhereClause ($clauseArray) | |
compileFieldCfg ($fieldCfg) | |
debug_parseSQLpart ($part, $str) | |
debug_parseSQLpartCompare ($str, $newStr, $caseInsensitive=FALSE) | |
debug_testSQL ($SQLquery) | |
Public Attributes | |
$parse_error = '' | |
$lastStopKeyWord = '' |
Definition at line 107 of file class.t3lib_sqlparser.php.
|
Add slashes function used for compiling queries NOTICE: If a query being parsed was prepared for another database than MySQL this function should probably be changed
Definition at line 1124 of file class.t3lib_sqlparser.php. |
|
Compiles an ALTER TABLE statement from components array
Definition at line 1370 of file class.t3lib_sqlparser.php. |
|
Compiles a CREATE TABLE statement from components array
Definition at line 1339 of file class.t3lib_sqlparser.php. |
|
Compiles an DELETE statement from components array
Definition at line 1319 of file class.t3lib_sqlparser.php. |
|
Compile field definition
Definition at line 1556 of file class.t3lib_sqlparser.php. |
|
Compiles a "SELECT [output] FROM..:" field list based on input array (made with ->parseFieldList()) Can also compile field lists for ORDER BY and GROUP BY.
Definition at line 1423 of file class.t3lib_sqlparser.php. |
|
Compiles a "FROM [output] WHERE..:" table list based on input array (made with ->parseFromTables())
Definition at line 1465 of file class.t3lib_sqlparser.php. |
|
Compiles an INSERT statement from components array
Definition at line 1279 of file class.t3lib_sqlparser.php. |
|
Compiles a SELECT statement from components array
Definition at line 1220 of file class.t3lib_sqlparser.php. |
|
Compiles an SQL query from components
Definition at line 1182 of file class.t3lib_sqlparser.php. |
|
Compiles an UPDATE statement from components array
Definition at line 1251 of file class.t3lib_sqlparser.php. |
|
Implodes an array of WHERE clause configuration into a WHERE clause. NOTICE: MIGHT BY A TEMPORARY FUNCTION. Use for debugging only! BUT IT IS NEEDED FOR DBAL - MAKE IT PERMANENT?!?!
Definition at line 1502 of file class.t3lib_sqlparser.php. References t3lib_div::inList(). |
|
Check parsability of input SQL part string; Will parse and re-compile after which it is compared
Definition at line 1605 of file class.t3lib_sqlparser.php. |
|
Compare two query strins by stripping away whitespace.
Definition at line 1627 of file class.t3lib_sqlparser.php. |
|
Performs the ultimate test of the parser: Direct a SQL query in; You will get it back (through the parsed and re-compiled) if no problems, otherwise the script will print the error and exit
Definition at line 1660 of file class.t3lib_sqlparser.php. |
|
Finds value in beginning of $parseString, returns result and strips it of parseString
Definition at line 1028 of file class.t3lib_sqlparser.php. |
|
Get value in quotes from $parseString. NOTICE: If a query being parsed was prepared for another database than MySQL this function should probably be changed
Definition at line 1084 of file class.t3lib_sqlparser.php. |
|
Strips of a part of the parseString and returns the matching part. Helper function for the parsing methods.
Definition at line 1013 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing ALTER TABLE query
Definition at line 507 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing CREATE DATABASE query
Definition at line 609 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing CREATE TABLE query
Definition at line 435 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing DELETE query
Definition at line 375 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing DROP TABLE query
Definition at line 576 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Setting the internal error message value, $this->parse_error and returns that value.
Definition at line 1139 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing EXPLAIN query
Definition at line 413 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing the WHERE clause fields in the "WHERE [$parseString] ..." part of a query into a multidimensional array. The success of this parsing determines if that part of the query is supported by TYPO3.
Definition at line 952 of file class.t3lib_sqlparser.php. Referenced by t3lib_sqlengine::processAccordingToConfig(). |
|
Parsing the fields in the "SELECT [$selectFields] FROM" part of a query into an array. The output from this function can be compiled back into a field list with ->compileFieldList() Will detect the keywords "DESC" and "ASC" after the table name; thus is can be used for parsing the more simply ORDER BY and GROUP BY field lists as well!
Definition at line 663 of file class.t3lib_sqlparser.php. |
|
Parsing the tablenames in the "FROM [$parseString] WHERE" part of a query into an array. The success of this parsing determines if that part of the query is supported by TYPO3.
Definition at line 781 of file class.t3lib_sqlparser.php. Referenced by t3lib_sqlengine::exec_SELECTquery(). |
|
Parsing INSERT query
Definition at line 315 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing SELECT query
Definition at line 192 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parses any single SQL query
Definition at line 129 of file class.t3lib_sqlparser.php. References nextPart(), parseALTERTABLE(), parseCREATEDATABASE(), parseCREATETABLE(), parseDELETE(), parseDROPTABLE(), parseError(), parseEXPLAIN(), parseINSERT(), parseSELECT(), parseUPDATE(), and trimSQL(). |
|
Strip slashes function used for parsing NOTICE: If a query being parsed was prepared for another database than MySQL this function should probably be changed
Definition at line 1110 of file class.t3lib_sqlparser.php. |
|
Parsing UPDATE query
Definition at line 261 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing the WHERE clause fields in the "WHERE [$parseString] ..." part of a query into a multidimensional array. The success of this parsing determines if that part of the query is supported by TYPO3.
Definition at line 844 of file class.t3lib_sqlparser.php. Referenced by t3lib_sqlengine::exec_DELETEquery(), t3lib_sqlengine::exec_SELECTquery(), and t3lib_sqlengine::exec_UPDATEquery(). |
|
Trimming SQL as preparation for parsing. ";" in the end is stripped of. White space is trimmed away around the value A single space-char is added in the end
Definition at line 1153 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |