‪TYPO3CMS  10.4
TYPO3\CMS\Core\Database\Schema\EventListener\SchemaIndexDefinitionListener Class Reference

Public Member Functions

 onSchemaIndexDefinition (SchemaIndexDefinitionEventArgs $event)
 

Protected Member Functions

Doctrine DBAL Schema Index buildIndex (array $tableIndexRows)
 

Detailed Description

Event listener to handle additional processing for index definitions to integrate MySQL index sub parts.

Definition at line 28 of file SchemaIndexDefinitionListener.php.

Member Function Documentation

◆ buildIndex()

Doctrine DBAL Schema Index TYPO3\CMS\Core\Database\Schema\EventListener\SchemaIndexDefinitionListener::buildIndex ( array  $tableIndexRows)
protected

Build a Doctrine Index Object based on the information gathered from the MySQL information schema.

Parameters
array$tableIndexRows
Returns
‪\Doctrine\DBAL\Schema\Index
Exceptions

Definition at line 88 of file SchemaIndexDefinitionListener.php.

Referenced by TYPO3\CMS\Core\Database\Schema\EventListener\SchemaIndexDefinitionListener\onSchemaIndexDefinition().

◆ onSchemaIndexDefinition()

TYPO3\CMS\Core\Database\Schema\EventListener\SchemaIndexDefinitionListener::onSchemaIndexDefinition ( SchemaIndexDefinitionEventArgs  $event)

Listener for index definition events. This intercepts definitions for indexes and builds the appropriate Index Object taking the sub part length into account when a MySQL platform has been detected.

Parameters
\Doctrine\DBAL\Event\SchemaIndexDefinitionEventArgs$event
Exceptions

Definition at line 39 of file SchemaIndexDefinitionListener.php.

References TYPO3\CMS\Core\Database\Schema\EventListener\SchemaIndexDefinitionListener\buildIndex().