TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
Mysql Class Reference
Inheritance diagram for Mysql:
AbstractCompiler

Public Member Functions

 compileFieldList ($selectFields, $compileComments=true, $functionMapping=true)
 
 compileFieldCfg ($fieldCfg)
 
 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)
 
 compileAddslashes ($str)
 
- 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
 

Detailed Description

SQL Compiler for native MySQL connections

Definition at line 23 of file Mysql.php.

Member Function Documentation

compileAddslashes (   $str)
protected

Add slashes function used for compiling queries This method overrides the method from because the input string is already properly escaped.

Parameters
string$strInput string
Returns
string Output string

Definition at line 189 of file Mysql.php.

Referenced by Mysql\compileFieldCfg(), Mysql\compileINSERT(), and Mysql\compileWhereClause().

compileALTERTABLE (   $components)
protected

Compiles an ALTER TABLE statement from components array

Parameters
array$componentsArray of SQL query components
Returns
string SQL ALTER TABLE query
See Also
parseALTERTABLE()

Definition at line 101 of file Mysql.php.

References Mysql\compileFieldCfg(), and SqlParser\normalizeKeyword().

compileCREATETABLE (   $components)
protected

Compiles a CREATE TABLE statement from components array

Parameters
array$componentsArray of SQL query components
Returns
string SQL CREATE TABLE query
See Also
parseCREATETABLE()

Definition at line 66 of file Mysql.php.

References Mysql\compileFieldCfg(), and elseif.

compileFieldCfg (   $fieldCfg)

Compile field definition

Parameters
array$fieldCfgField definition parts
Returns
string Field definition string

Definition at line 203 of file Mysql.php.

References Mysql\compileAddslashes().

Referenced by Mysql\compileALTERTABLE(), and Mysql\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.

Parameters
array$selectFieldsArray of select fields, (made with ->parseFieldList())
bool$compileCommentsWhether comments should be compiled
bool$functionMapping
Returns
string Select field string
See Also
parseFieldList()

Definition at line 142 of file Mysql.php.

References AbstractCompiler\compileCaseStatement().

compileINSERT (   $components)
protected

Compiles an INSERT statement from components array

Parameters
array$componentsArray of SQL query components
Returns
string SQL INSERT query
See Also
parseINSERT()

Definition at line 32 of file Mysql.php.

References Mysql\compileAddslashes().

compileWhereClause (   $clauseArray,
  $functionMapping = true 
)

Implodes an array of WHERE clause configuration into a WHERE clause.

Parameters
array$clauseArrayWHERE clause configuration
bool$functionMapping
Returns
string WHERE clause as string.
See Also
explodeWhereClause()

Definition at line 233 of file Mysql.php.

References Mysql\compileAddslashes(), AbstractCompiler\compileSELECT(), elseif, GeneralUtility\inList(), and SqlParser\normalizeKeyword().