TYPO3
7.6
|
Public Member Functions | |
compileFieldList ($selectFields, $compileComments=true, $functionMapping=true) | |
compileWhereClause ($clauseArray, $functionMapping=true) | |
Public Member Functions inherited from AbstractCompiler | |
__construct (DatabaseConnection $databaseConnection) | |
compileSQL ($components) | |
compileFieldList ($selectFields, $compileComments=true, $functionMapping=true) | |
compileWhereClause ($clauseArray, $functionMapping=true) | |
compileFromTables ($tablesArray) | |
Protected Member Functions | |
compileINSERT ($components) | |
compileCREATETABLE ($components) | |
compileALTERTABLE ($components) | |
compileCREATEINDEX ($indexName, $tableName, $indexFields, $indexOptions=array()) | |
compileDROPINDEX ($indexName, $tableName) | |
compileAddslashes ($str) | |
compileFieldCfg ($fieldCfg) | |
Protected Member Functions inherited from AbstractCompiler | |
compileSELECT ($components) | |
compileUPDATE ($components) | |
compileINSERT ($components) | |
compileDELETE ($components) | |
compileCREATETABLE ($components) | |
compileALTERTABLE ($components) | |
compileTRUNCATETABLE (array $components) | |
compileAddslashes ($str) | |
compileJoinIdentifier ($identifierParts) | |
compileCaseStatement (array $components, $functionMapping=true) | |
Additional Inherited Members | |
Protected Attributes inherited from AbstractCompiler | |
$databaseConnection | |
|
protected |
Add slashes function used for compiling queries This method overrides the method from because the input string is already properly escaped.
string | $str | Input string |
Definition at line 245 of file Adodb.php.
Referenced by Adodb\compileFieldCfg(), and Adodb\compileWhereClause().
|
protected |
Compiles an ALTER TABLE statement from components array
array | Array of SQL query components |
Definition at line 100 of file Adodb.php.
References Adodb\compileCREATEINDEX(), Adodb\compileDROPINDEX(), and Adodb\compileFieldCfg().
|
protected |
Compiles CREATE INDEX statements from component information
MySQL only needs uniqueness of index names per table, but many DBMS require uniqueness of index names per schema. The table name is hashed and prepended to the index name to make sure index names are unique.
string | $indexName | |
string | $tableName | |
array | $indexFields | |
array | $indexOptions |
Definition at line 149 of file Adodb.php.
References AbstractSpecifics\PARTIAL_STRING_INDEX.
Referenced by Adodb\compileALTERTABLE(), and Adodb\compileCREATETABLE().
|
protected |
Compiles a CREATE TABLE statement from components array
array | $components | Array of SQL query components |
Definition at line 61 of file Adodb.php.
References Adodb\compileCREATEINDEX(), Adodb\compileFieldCfg(), and elseif.
|
protected |
Compiles DROP INDEX statements from component information
MySQL only needs uniqueness of index names per table, but many DBMS require uniqueness of index names per schema. The table name is hashed and prepended to the index name to make sure index names are unique.
$indexName | |
$tableName |
Definition at line 179 of file Adodb.php.
Referenced by Adodb\compileALTERTABLE().
|
protected |
Compile field definition
array | $fieldCfg | Field definition parts |
Definition at line 256 of file Adodb.php.
References Adodb\compileAddslashes(), and elseif.
Referenced by Adodb\compileALTERTABLE(), and Adodb\compileCREATETABLE().
compileFieldList | ( | $selectFields, | |
$compileComments = true , |
|||
$functionMapping = true |
|||
) |
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.
array | $selectFields | Array of select fields, (made with ->parseFieldList()) |
bool | $compileComments | Whether comments should be compiled |
bool | $functionMapping | Whether function mapping should take place |
Definition at line 198 of file Adodb.php.
References AbstractCompiler\compileCaseStatement().
|
protected |
compileWhereClause | ( | $clauseArray, | |
$functionMapping = true |
|||
) |
Implodes an array of WHERE clause configuration into a WHERE clause.
DBAL-specific: The only(!) handled "calc" operators supported by parseWhereClause() are:
array | $clauseArray | |
bool | $functionMapping |
Definition at line 335 of file Adodb.php.
References Adodb\compileAddslashes(), AbstractCompiler\compileSELECT(), elseif, GeneralUtility\inList(), GeneralUtility\isFirstPartOfStr(), SqlParser\normalizeKeyword(), and GeneralUtility\strtolower().