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

Static Public Member Functions

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

Static Protected Member Functions

static string getPlatformIdentifier (AbstractPlatform $platform)
 

Static Protected Attributes

static array $identifierLimits
 
static array $bindParameterLimits
 
static string[] $charSetMap
 
static string[] $databaseCreateWithCharsetMap
 

Detailed Description

Helper to handle platform specific details

Definition at line 32 of file PlatformInformation.php.

Member Function Documentation

◆ getCharset()

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

Return the encoding of the given platform

Parameters
AbstractPlatform$platform
Returns
‪string

Definition at line 75 of file PlatformInformation.php.

◆ getDatabaseCreateStatementWithCharset()

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

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

Parameters
AbstractPlatform$platform
string$databaseName
Returns
‪string

Definition at line 89 of file PlatformInformation.php.

Referenced by TYPO3\CMS\Install\Controller\InstallerController\createNewDatabase().

◆ getMaxBindParameters()

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

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

Parameters
AbstractPlatform$platform
Returns
‪int

Definition at line 125 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\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(), and TYPO3\CMS\Core\Database\RelationHandler\sortList().

◆ getMaxIdentifierLength()

◆ getPlatformIdentifier()

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

Return the platform shortname to use as a lookup key

Parameters
AbstractPlatform$platform
Returns
‪string
Exceptions

Definition at line 140 of file PlatformInformation.php.

Member Data Documentation

◆ $bindParameterLimits

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

Definition at line 45 of file PlatformInformation.php.

◆ $charSetMap

string [] TYPO3\CMS\Core\Database\Platform\PlatformInformation::$charSetMap
staticprotected
Initial value:
= array(
'mysql' => 'utf8mb4',
'postgresql' => 'UTF8',
'sqlserver' => 'UTF-8',
'sqlite' => 'utf8',
)

Definition at line 54 of file PlatformInformation.php.

◆ $databaseCreateWithCharsetMap

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

Definition at line 63 of file PlatformInformation.php.

◆ $identifierLimits

array TYPO3\CMS\Core\Database\Platform\PlatformInformation::$identifierLimits
staticprotected
Initial value:
= array(
'mysql' => 63,
'postgresql' => 63,
'sqlserver' => 128,
'sqlite' => 1024,
)

Definition at line 36 of file PlatformInformation.php.