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 1167 of file class.t3lib_sqlparser.php. |
|
Compiles an ALTER TABLE statement from components array
Reimplemented in ux_t3lib_sqlengine, and ux_t3lib_sqlparser. Definition at line 1415 of file class.t3lib_sqlparser.php. |
|
Compiles a CREATE TABLE statement from components array
Reimplemented in ux_t3lib_sqlengine, and ux_t3lib_sqlparser. Definition at line 1382 of file class.t3lib_sqlparser.php. |
|
Compiles an DELETE statement from components array
Definition at line 1362 of file class.t3lib_sqlparser.php. Referenced by ux_t3lib_sqlparser::compileSQL(), and ux_t3lib_sqlengine::compileSQL(). |
|
Compile field definition
Definition at line 1605 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 1468 of file class.t3lib_sqlparser.php. |
|
Compiles a "FROM [output] WHERE..:" table list based on input array (made with ->parseFromTables())
Definition at line 1510 of file class.t3lib_sqlparser.php. |
|
Compiles an INSERT statement from components array
Reimplemented in ux_t3lib_sqlengine, and ux_t3lib_sqlparser. Definition at line 1322 of file class.t3lib_sqlparser.php. |
|
Compiles a SELECT statement from components array
Definition at line 1263 of file class.t3lib_sqlparser.php. Referenced by ux_t3lib_sqlparser::compileSQL(), and ux_t3lib_sqlengine::compileSQL(). |
|
Compiles an SQL query from components
Reimplemented in ux_t3lib_sqlengine, and ux_t3lib_sqlparser. Definition at line 1225 of file class.t3lib_sqlparser.php. |
|
Compiles an UPDATE statement from components array
Definition at line 1294 of file class.t3lib_sqlparser.php. Referenced by ux_t3lib_sqlparser::compileSQL(), and ux_t3lib_sqlengine::compileSQL(). |
|
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 1551 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 1654 of file class.t3lib_sqlparser.php. |
|
Compare two query strins by stripping away whitespace.
Definition at line 1679 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 1712 of file class.t3lib_sqlparser.php. |
|
Finds value in beginning of $parseString, returns result and strips it of parseString
Definition at line 1068 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 1127 of file class.t3lib_sqlparser.php. |
|
Strips off a part of the parseString and returns the matching part. Helper function for the parsing methods.
Definition at line 1053 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing ALTER TABLE query
Definition at line 514 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing CREATE DATABASE query
Definition at line 616 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 583 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 1182 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 990 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 670 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 791 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(). Referenced by tx_dbal_handler_xmldb::admin_query(), and tx_dbal_handler_openoffice::admin_query(). |
|
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 1153 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 882 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 1196 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |