TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DatabaseCheck Class Reference

Public Member Functions

 getStatus ()
 

Protected Member Functions

 checkInvalidSqlModes ()
 
 checkMysqlVersion ()
 
 getIncompatibleSqlModes ()
 
 isDbalEnabled ()
 

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 29 of file DatabaseCheck.php.

Member Function Documentation

checkInvalidSqlModes ( )
protected

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

Returns
Status

Definition at line 63 of file DatabaseCheck.php.

References DatabaseCheck\getIncompatibleSqlModes().

Referenced by DatabaseCheck\getStatus().

checkMysqlVersion ( )
protected

Check minimum MySQL version

Returns
Status

Definition at line 89 of file DatabaseCheck.php.

Referenced by DatabaseCheck\getStatus().

getIncompatibleSqlModes ( )
protected

Returns an array with the current sql mode settings

Returns
array Contains all configured SQL modes that are incompatible

Definition at line 120 of file DatabaseCheck.php.

Referenced by DatabaseCheck\checkInvalidSqlModes().

getStatus ( )

Get all status information as array with status objects

Returns
array<>

Definition at line 47 of file DatabaseCheck.php.

References DatabaseCheck\checkInvalidSqlModes(), DatabaseCheck\checkMysqlVersion(), and DatabaseCheck\isDbalEnabled().

isDbalEnabled ( )
protected

Checks if DBAL is enabled for the database connection

Returns
bool

Definition at line 162 of file DatabaseCheck.php.

Referenced by DatabaseCheck\getStatus().

Member Data Documentation

$incompatibleSqlModes
protected
Initial value:
= array(
'STRICT_ALL_TABLES',
'STRICT_TRANS_TABLES',
'NO_BACKSLASH_ESCAPES'
)

Definition at line 36 of file DatabaseCheck.php.