TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
DatabaseCheck Class Reference

Public Member Functions

 getStatus ()
 

Protected Member Functions

 checkInvalidSqlModes ($connection)
 
 checkMysqlVersion ($connection)
 
 getIncompatibleSqlModes ($connection)
 

Protected Attributes

 $incompatibleSqlModes
 

Detailed Description

Check database configuration status

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).

Definition at line 32 of file DatabaseCheck.php.

Member Function Documentation

checkInvalidSqlModes (   $connection)
protected

Check if any SQL mode is set which is not compatible with TYPO3

Parameters
ConnectionConnection to the database to be checked
Returns
Status

Definition at line 68 of file DatabaseCheck.php.

References DatabaseCheck\getIncompatibleSqlModes().

Referenced by DatabaseCheck\getStatus().

checkMysqlVersion (   $connection)
protected

Check minimum MySQL version

Parameters
ConnectionConnection to the database to be checked
Returns
Status

Definition at line 95 of file DatabaseCheck.php.

Referenced by DatabaseCheck\getStatus().

getIncompatibleSqlModes (   $connection)
protected

Returns an array with the current sql mode settings

Parameters
ConnectionConnection to the database to be checked
Returns
array Contains all configured SQL modes that are incompatible

Definition at line 157 of file DatabaseCheck.php.

Referenced by DatabaseCheck\checkInvalidSqlModes().

getStatus ( )

Get all status information as array with status objects

Returns
[]

Definition at line 48 of file DatabaseCheck.php.

References DatabaseCheck\checkInvalidSqlModes(), DatabaseCheck\checkMysqlVersion(), ConnectionPool\DEFAULT_CONNECTION_NAME, and GeneralUtility\makeInstance().

Member Data Documentation

$incompatibleSqlModes
protected
Initial value:
= [
'NO_BACKSLASH_ESCAPES'
]

Definition at line 39 of file DatabaseCheck.php.