TYPO3 CMS  TYPO3_7-6
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)
 
 getExtractorsWithDriverSupport ($driverType)
 

Static Public Member Functions

static getInstance ()
 

Protected Member Functions

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

Protected Attributes

 $extractors = []
 
 $instances = null
 

Detailed Description

Registry for MetaData extraction Services

Definition at line 24 of file ExtractorRegistry.php.

Member Function Documentation

◆ compareExtractorPriority()

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.

Parameters
ExtractorInterface$extractorA
ExtractorInterface$extractorB
Returns
int -1 a > b, 0 a == b, 1 a < b

Definition at line 121 of file ExtractorRegistry.php.

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

◆ createExtractorInstance()

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

Create an instance of a Metadata Extractor

Parameters
string$className
Returns
ExtractorInterface

Definition at line 132 of file ExtractorRegistry.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

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

◆ getExtractorsWithDriverSupport()

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

Get Extractors which work for a special driver

Parameters
string$driverType
Returns
ExtractorInterface[]

Definition at line 96 of file ExtractorRegistry.php.

◆ getInstance()

static TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::getInstance ( )
static

◆ registerExtractionService()

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

Member Data Documentation

◆ $extractors

TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::$extractors = []
protected

◆ $instances

TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::$instances = null
protected