TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility Class Reference
Inheritance diagram for TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility:
TYPO3\CMS\Core\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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Utility for dealing with database related operations

Author
Susanne Moog susan.nosp@m.ne.m.nosp@m.oog@t.nosp@m.ypo3.nosp@m..org

Definition at line 21 of file DatabaseUtility.php.

Member Function Documentation

◆ dumpHeader()

TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility::dumpHeader ( )
protected

Header comments of the SQL dump file

Returns
string Table header

Definition at line 55 of file DatabaseUtility.php.

Referenced by TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility\dumpStaticTables().

◆ dumpStaticTables()

TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility::dumpStaticTables (   $dbFields)

◆ dumpTableContent()

TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility::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 111 of file DatabaseUtility.php.

References $GLOBALS, and $result.

Referenced by TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility\dumpStaticTables().

◆ dumpTableHeader()

TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility::dumpTableHeader (   $table,
array  $fieldKeyInfo,
  $dropTableIfExists = FALSE 
)
protected

Dump CREATE TABLE definition

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

Definition at line 72 of file DatabaseUtility.php.

Referenced by TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility\dumpStaticTables().

Member Data Documentation

◆ MULTI_LINEBREAKS

const TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility::MULTI_LINEBREAKS
Initial value:
= '
'

Definition at line 26 of file DatabaseUtility.php.