‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Database\Platform\PlatformInformation Class Reference

Static Public Member Functions

static getCharset (DoctrineAbstractPlatform $platform)
 
static getDatabaseCreateStatementWithCharset (DoctrineAbstractPlatform $platform, string $databaseName)
 
static getMaxIdentifierLength (DoctrineAbstractPlatform $platform)
 
static getMaxBindParameters (DoctrineAbstractPlatform $platform)
 

Static Protected Member Functions

static getPlatformIdentifier (DoctrineAbstractPlatform $platform)
 

Static Protected Attributes

static array $identifierLimits
 
static array $bindParameterLimits
 
static array $charSetMap
 
static array $databaseCreateWithCharsetMap
 

Detailed Description

Helper to handle platform specific details

Definition at line 32 of file PlatformInformation.php.

Member Function Documentation

◆ getCharset()

static TYPO3\CMS\Core\Database\Platform\PlatformInformation::getCharset ( DoctrineAbstractPlatform  $platform)
static

Return the encoding of the given platform

Definition at line 66 of file PlatformInformation.php.

◆ getDatabaseCreateStatementWithCharset()

static TYPO3\CMS\Core\Database\Platform\PlatformInformation::getDatabaseCreateStatementWithCharset ( DoctrineAbstractPlatform  $platform,
string  $databaseName 
)
static

Return the statement to create a database with the desired encoding for the given platform

Definition at line 75 of file PlatformInformation.php.

Referenced by TYPO3\CMS\Install\Service\SetupDatabaseService\createDatabase().

◆ getMaxBindParameters()

static TYPO3\CMS\Core\Database\Platform\PlatformInformation::getMaxBindParameters ( DoctrineAbstractPlatform  $platform)
static

Return information about the maximum number of bound parameters supported on this platform

Definition at line 106 of file PlatformInformation.php.

Referenced by TYPO3\CMS\Extensionmanager\Domain\Repository\BulkExtensionRepositoryWriter\__construct(), TYPO3\CMS\Core\DataHandling\Localization\DataMapProcessor\fetchDependentElements(), TYPO3\CMS\Core\DataHandling\Localization\DataMapProcessor\fetchTranslationValues(), TYPO3\CMS\Linkvalidator\Repository\BrokenLinkRepository\getAllBrokenLinksForPages(), TYPO3\CMS\Recycler\Domain\Model\DeletedRecords\getFilteredQueryBuilder(), TYPO3\CMS\Core\Database\RelationHandler\getFromDB(), TYPO3\CMS\Linkvalidator\LinkAnalyzer\getLinkStatistics(), TYPO3\CMS\Linkvalidator\Repository\BrokenLinkRepository\getNumberOfBrokenLinksForRecordsOnPages(), TYPO3\CMS\Core\Domain\Repository\PageRepository\getPageOverlaysForLanguage(), TYPO3\CMS\Extensionmanager\Domain\Repository\BulkExtensionRepositoryWriter\markExtensionWithMaximumVersionAsCurrent(), TYPO3\CMS\Core\Tests\Unit\Database\Platform\PlatformInformationTest\maxBindParameters(), TYPO3\CMS\Core\Tests\Unit\Database\Platform\PlatformInformationTest\maxBindParametersWithUnknownPlatform(), TYPO3\CMS\Core\Database\RelationHandler\purgeDeletePlaceholder(), TYPO3\CMS\Core\Database\RelationHandler\purgeLiveVersionedIds(), TYPO3\CMS\Core\Database\RelationHandler\purgeVersionedIds(), TYPO3\CMS\Linkvalidator\Repository\BrokenLinkRepository\removeAllBrokenLinksOfRecordsOnPageIds(), TYPO3\CMS\Core\Database\RelationHandler\sortList(), and TYPO3\CMS\Lowlevel\Integrity\DatabaseIntegrityCheck\testDBRefs().

◆ getMaxIdentifierLength()

static TYPO3\CMS\Core\Database\Platform\PlatformInformation::getMaxIdentifierLength ( DoctrineAbstractPlatform  $platform)
static

◆ getPlatformIdentifier()

static TYPO3\CMS\Core\Database\Platform\PlatformInformation::getPlatformIdentifier ( DoctrineAbstractPlatform  $platform)
staticprotected

Return the platform shortname to use as a lookup key

Exceptions

Definition at line 118 of file PlatformInformation.php.

Member Data Documentation

◆ $bindParameterLimits

array TYPO3\CMS\Core\Database\Platform\PlatformInformation::$bindParameterLimits
staticprotected
Initial value:
= [
'mysql' => 65535,
'postgresql' => 34464,
'sqlite' => 999,
]

Definition at line 40 of file PlatformInformation.php.

◆ $charSetMap

array TYPO3\CMS\Core\Database\Platform\PlatformInformation::$charSetMap
staticprotected
Initial value:
= [
'mysql' => 'utf8mb4',
'postgresql' => 'UTF8',
'sqlite' => 'utf8',
]

Definition at line 49 of file PlatformInformation.php.

◆ $databaseCreateWithCharsetMap

array TYPO3\CMS\Core\Database\Platform\PlatformInformation::$databaseCreateWithCharsetMap
staticprotected
Initial value:
= [
'mysql' => 'CHARACTER SET %s',
'postgresql' => "ENCODING '%s'",
]

Definition at line 58 of file PlatformInformation.php.

◆ $identifierLimits

array TYPO3\CMS\Core\Database\Platform\PlatformInformation::$identifierLimits
staticprotected
Initial value:
= [
'mysql' => 63,
'postgresql' => 63,
'sqlite' => 1024,
]

Definition at line 34 of file PlatformInformation.php.