TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
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 20 of file DatabaseUtility.php.

Member Function Documentation

dumpHeader ( )
protected

Header comments of the SQL dump file

Returns
string Table header

Definition at line 55 of file DatabaseUtility.php.

Referenced by DatabaseUtility\dumpStaticTables().

dumpStaticTables (   $dbFields)

Dump content for static tables

Parameters
array$dbFields
Returns
string

Definition at line 35 of file DatabaseUtility.php.

References 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 113 of file DatabaseUtility.php.

References $GLOBALS.

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 73 of file DatabaseUtility.php.

Referenced by DatabaseUtility\dumpStaticTables().

Member Data Documentation

const MULTI_LINEBREAKS
Initial value:
= '
'

Definition at line 25 of file DatabaseUtility.php.