‪TYPO3CMS  10.4
TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql Class Reference
Inheritance diagram for TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql:
TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\AbstractPlatform TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PlatformCheckInterface TYPO3\CMS\Install\SystemEnvironment\CheckInterface

Public Member Functions

FlashMessageQueue getStatus ()
 
 checkDefaultDatabaseCharset (Connection $connection)
 
 checkDefaultDatabaseServerCharset (Connection $connection)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\AbstractPlatform
 __construct ()
 
 getMessageQueue ()
 

Static Public Member Functions

static bool isValidDatabaseName (string $databaseName)
 

Protected Member Functions

 checkPostgreSqlVersion (Connection $connection)
 
 checkLibpqVersion ()
 
 checkDatabaseName (Connection $connection)
 

Protected Attributes

string $minimumPostgreSQLVerion = '9.2'
 
string $minimumLibPQVersion = '9.0'
 
array $databaseCharsetToCheck
 
array $databaseServerCharsetToCheck
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\AbstractPlatform
FlashMessageQueue $messageQueue
 
const SCHEMA_NAME_MAX_LENGTH = 64
 

Detailed Description

Check database configuration status for PostgreSQL

This class is a hardcoded requirement check for the database server.

The status messages and title must not include HTML, use plain text only. The return values of this class are not bound to HTML and can be used in different scopes (eg. as json array).

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Definition at line 37 of file PostgreSql.php.

Member Function Documentation

◆ checkDatabaseName()

TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::checkDatabaseName ( Connection  $connection)
protected

◆ checkDefaultDatabaseCharset()

TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::checkDefaultDatabaseCharset ( Connection  $connection)

Checks the character set of the database and reports an error if it is not utf-8.

Parameters
Connection$connection‪to the database to be checked

Implements TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PlatformCheckInterface.

Definition at line 152 of file PostgreSql.php.

References TYPO3\CMS\Core\Messaging\AbstractMessage\ERROR.

Referenced by TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql\getStatus().

◆ checkDefaultDatabaseServerCharset()

TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::checkDefaultDatabaseServerCharset ( Connection  $connection)

Checks the character set of the database server and reports an info if it is not utf-8.

Parameters
Connection$connection‪to the database to be checked

Implements TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PlatformCheckInterface.

Definition at line 184 of file PostgreSql.php.

References TYPO3\CMS\Core\Messaging\AbstractMessage\INFO.

Referenced by TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql\getStatus().

◆ checkLibpqVersion()

TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::checkLibpqVersion ( )
protected

◆ checkPostgreSqlVersion()

TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::checkPostgreSqlVersion ( Connection  $connection)
protected

Check minimum PostgreSQL version

Parameters
Connection$connection‪to the database to be checked

Definition at line 92 of file PostgreSql.php.

References TYPO3\CMS\Core\Messaging\AbstractMessage\ERROR, and TYPO3\CMS\Core\Database\Connection\getServerVersion().

Referenced by TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql\getStatus().

◆ getStatus()

◆ isValidDatabaseName()

static bool TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::isValidDatabaseName ( string  $databaseName)
static

Validate the database name

Parameters
string$databaseName
Returns
‪bool

Reimplemented from TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\AbstractPlatform.

Definition at line 212 of file PostgreSql.php.

Member Data Documentation

◆ $databaseCharsetToCheck

array TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::$databaseCharsetToCheck
protected
Initial value:
= array(
'utf8',
)

Charset of the database that should be fulfilled

Definition at line 53 of file PostgreSql.php.

◆ $databaseServerCharsetToCheck

array TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::$databaseServerCharsetToCheck
protected
Initial value:
= array(
'utf8',
)

Charset of the database server that should be fulfilled

Definition at line 60 of file PostgreSql.php.

◆ $minimumLibPQVersion

string TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::$minimumLibPQVersion = '9.0'
protected

Minimum supported libpq version

Definition at line 48 of file PostgreSql.php.

◆ $minimumPostgreSQLVerion

string TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Platform\PostgreSql::$minimumPostgreSQLVerion = '9.2'
protected

Minimum supported PostgreSQL Server version

Definition at line 43 of file PostgreSql.php.