TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
DatabaseUtility Class Reference
Inheritance diagram for DatabaseUtility:
SingletonInterface

Public Member Functions

 dumpStaticTables ($dbFields)
 

Public Attributes

const MULTI_LINEBREAKS
 

Protected Member Functions

 dumpHeader ()
 
 dumpTableHeader ($table, array $fieldKeyInfo, $dropTableIfExists=false)
 
 dumpTableContent ($table, array $fieldStructure)
 

Detailed Description

Utility for dealing with database related operations

Definition at line 23 of file DatabaseUtility.php.

Member Function Documentation

dumpHeader ( )
protected

Header comments of the SQL dump file

Returns
string Table header

Definition at line 58 of file DatabaseUtility.php.

Referenced by DatabaseUtility\dumpStaticTables().

dumpStaticTables (   $dbFields)

Dump content for static tables

Parameters
array$dbFields
Returns
string

Definition at line 38 of file DatabaseUtility.php.

References $fields, DatabaseUtility\dumpHeader(), DatabaseUtility\dumpTableContent(), and DatabaseUtility\dumpTableHeader().

dumpTableContent (   $table,
array  $fieldStructure 
)
protected

Dump table content Is DBAL compliant, but the dump format is written as MySQL standard. If the INSERT statements should be imported in a DBMS using other quoting than MySQL they must first be translated.

Parameters
string$tableTable name
array$fieldStructureField structure
Returns
string SQL Content of dump (INSERT statements)

Definition at line 116 of file DatabaseUtility.php.

References GeneralUtility\makeInstance().

Referenced by DatabaseUtility\dumpStaticTables().

dumpTableHeader (   $table,
array  $fieldKeyInfo,
  $dropTableIfExists = false 
)
protected

Dump CREATE TABLE definition

Parameters
string$table
array$fieldKeyInfo
bool$dropTableIfExists
Returns
string

Definition at line 76 of file DatabaseUtility.php.

Referenced by DatabaseUtility\dumpStaticTables().

Member Data Documentation

const MULTI_LINEBREAKS
Initial value:
= '
'

Definition at line 28 of file DatabaseUtility.php.