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) | |
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) | |
parseSQL ($parseString) | |
parseSELECT ($parseString) | |
parseUPDATE ($parseString) | |
parseINSERT ($parseString) | |
parseDELETE ($parseString) | |
parseEXPLAIN ($parseString) | |
parseCREATETABLE ($parseString) | |
parseALTERTABLE ($parseString) | |
parseDROPTABLE ($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 106 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 1093 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 1093 of file class.t3lib_sqlparser.php. |
|
Compiles an ALTER TABLE statement from components array
Definition at line 1337 of file class.t3lib_sqlparser.php. |
|
Compiles an ALTER TABLE statement from components array
Definition at line 1337 of file class.t3lib_sqlparser.php. |
|
Compiles a CREATE TABLE statement from components array
Definition at line 1306 of file class.t3lib_sqlparser.php. |
|
Compiles a CREATE TABLE statement from components array
Definition at line 1306 of file class.t3lib_sqlparser.php. |
|
Compiles an DELETE statement from components array
Definition at line 1286 of file class.t3lib_sqlparser.php. |
|
Compiles an DELETE statement from components array
Definition at line 1286 of file class.t3lib_sqlparser.php. |
|
Compile field definition
Definition at line 1522 of file class.t3lib_sqlparser.php. |
|
Compile field definition
Definition at line 1522 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 1390 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 1390 of file class.t3lib_sqlparser.php. |
|
Compiles a "FROM [output] WHERE..:" table list based on input array (made with ->parseFromTables())
Definition at line 1432 of file class.t3lib_sqlparser.php. |
|
Compiles a "FROM [output] WHERE..:" table list based on input array (made with ->parseFromTables())
Definition at line 1432 of file class.t3lib_sqlparser.php. |
|
Compiles an INSERT statement from components array
Definition at line 1246 of file class.t3lib_sqlparser.php. |
|
Compiles an INSERT statement from components array
Definition at line 1246 of file class.t3lib_sqlparser.php. |
|
Compiles a SELECT statement from components array
Definition at line 1187 of file class.t3lib_sqlparser.php. |
|
Compiles a SELECT statement from components array
Definition at line 1187 of file class.t3lib_sqlparser.php. |
|
Compiles an SQL query from components
Definition at line 1149 of file class.t3lib_sqlparser.php. |
|
Compiles an SQL query from components
Definition at line 1149 of file class.t3lib_sqlparser.php. |
|
Compiles an UPDATE statement from components array
Definition at line 1218 of file class.t3lib_sqlparser.php. |
|
Compiles an UPDATE statement from components array
Definition at line 1218 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!
Definition at line 1468 of file class.t3lib_sqlparser.php. References t3lib_div::inList(). |
|
Implodes an array of WHERE clause configuration into a WHERE clause. NOTICE: MIGHT BY A TEMPORARY FUNCTION. Use for debugging only!
Definition at line 1468 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 1571 of file class.t3lib_sqlparser.php. |
|
Check parsability of input SQL part string; Will parse and re-compile after which it is compared
Definition at line 1571 of file class.t3lib_sqlparser.php. |
|
Compare two query strins by stripping away whitespace.
Definition at line 1593 of file class.t3lib_sqlparser.php. |
|
Compare two query strins by stripping away whitespace.
Definition at line 1593 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 1626 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 1626 of file class.t3lib_sqlparser.php. |
|
Finds value in beginning of $parseString, returns result and strips it of parseString
Definition at line 999 of file class.t3lib_sqlparser.php. |
|
Finds value in beginning of $parseString, returns result and strips it of parseString
Definition at line 999 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 1054 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 1054 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 985 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 985 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing ALTER TABLE query
Definition at line 503 of file class.t3lib_sqlparser.php. |
|
Parsing ALTER TABLE query
Definition at line 503 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing CREATE TABLE query
Definition at line 431 of file class.t3lib_sqlparser.php. |
|
Parsing CREATE TABLE query
Definition at line 431 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing DELETE query
Definition at line 371 of file class.t3lib_sqlparser.php. |
|
Parsing DELETE query
Definition at line 371 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing DROP TABLE query
Definition at line 572 of file class.t3lib_sqlparser.php. |
|
Parsing DROP TABLE query
Definition at line 572 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 1107 of file class.t3lib_sqlparser.php. |
|
Setting the internal error message value, $this->parse_error and returns that value.
Definition at line 1107 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing EXPLAIN query
Definition at line 409 of file class.t3lib_sqlparser.php. |
|
Parsing EXPLAIN query
Definition at line 409 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 924 of file class.t3lib_sqlparser.php. |
|
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 924 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 631 of file class.t3lib_sqlparser.php. |
|
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 631 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 749 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 749 of file class.t3lib_sqlparser.php. Referenced by t3lib_sqlengine::exec_SELECTquery(). |
|
Parsing INSERT query
Definition at line 311 of file class.t3lib_sqlparser.php. |
|
Parsing INSERT query
Definition at line 311 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parsing SELECT query
Definition at line 188 of file class.t3lib_sqlparser.php. |
|
Parsing SELECT query
Definition at line 188 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |
|
Parses any single SQL query
Definition at line 128 of file class.t3lib_sqlparser.php. References nextPart(), parseALTERTABLE(), parseCREATETABLE(), parseDELETE(), parseDROPTABLE(), parseError(), parseEXPLAIN(), parseINSERT(), parseSELECT(), parseUPDATE(), and trimSQL(). |
|
Parses any single SQL query
Definition at line 128 of file class.t3lib_sqlparser.php. References nextPart(), parseALTERTABLE(), 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 1079 of file class.t3lib_sqlparser.php. |
|
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 1079 of file class.t3lib_sqlparser.php. |
|
Parsing UPDATE query
Definition at line 257 of file class.t3lib_sqlparser.php. |
|
Parsing UPDATE query
Definition at line 257 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 816 of file class.t3lib_sqlparser.php. |
|
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 816 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 1121 of file class.t3lib_sqlparser.php. |
|
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 1121 of file class.t3lib_sqlparser.php. Referenced by parseSQL(). |