‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Index\ExtractorRegistry Class Reference
Inheritance diagram for TYPO3\CMS\Core\Resource\Index\ExtractorRegistry:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 registerExtractionService ($className)
 
ExtractorInterface[] getExtractors ()
 
ExtractorInterface[] getExtractorsWithDriverSupport ($driverType)
 

Protected Member Functions

int compareExtractorPriority (ExtractorInterface $extractorA, ExtractorInterface $extractorB)
 
ExtractorInterface createExtractorInstance ($className)
 

Protected Attributes

array $extractors = array( )
 
ExtractorInterface[] $instances
 

Detailed Description

Registry for MetaData extraction Services

Definition at line 24 of file ExtractorRegistry.php.

Member Function Documentation

◆ compareExtractorPriority()

int TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::compareExtractorPriority ( ExtractorInterface  $extractorA,
ExtractorInterface  $extractorB 
)
protected

Compare the priority of two Extractor classes. Is used for sorting array of Extractor instances by priority. We want the result to be ordered from high to low so a higher priority comes before a lower.

Returns
‪int -1 a > b, 0 a == b, 1 a < b

Definition at line 100 of file ExtractorRegistry.php.

References TYPO3\CMS\Core\Resource\Index\ExtractorInterface\getExecutionPriority().

◆ createExtractorInstance()

ExtractorInterface TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::createExtractorInstance (   $className)
protected

Create an instance of a Metadata Extractor

Parameters
string$className
Returns
ExtractorInterface

Definition at line 111 of file ExtractorRegistry.php.

Referenced by TYPO3\CMS\Core\Resource\Index\ExtractorRegistry\getExtractors().

◆ getExtractors()

ExtractorInterface [] TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::getExtractors ( )

◆ getExtractorsWithDriverSupport()

ExtractorInterface [] TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::getExtractorsWithDriverSupport (   $driverType)

Get Extractors which work for a special driver

Parameters
string$driverType
Returns
ExtractorInterface[]

Definition at line 81 of file ExtractorRegistry.php.

References TYPO3\CMS\Core\Resource\Index\ExtractorInterface\getDriverRestrictions(), and TYPO3\CMS\Core\Resource\Index\ExtractorRegistry\getExtractors().

◆ registerExtractionService()

TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::registerExtractionService (   $className)

Allows to register MetaData extraction to the FAL Indexer

Parameters
string$className
Exceptions

Definition at line 43 of file ExtractorRegistry.php.

Member Data Documentation

◆ $extractors

array TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::$extractors = array( )
protected

Registered ClassNames

Definition at line 29 of file ExtractorRegistry.php.

◆ $instances

ExtractorInterface [] TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::$instances
protected

Instance Cache for Extractors

Definition at line 35 of file ExtractorRegistry.php.

Referenced by TYPO3\CMS\Core\Resource\Index\ExtractorRegistry\getExtractors().