‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Service\ExtractorService Class Reference

Public Member Functions

 extractMetaData (File $fileObject)
 

Protected Member Functions

ExtractorInterface[] getExtractionServices (string $driverType)
 
 getExtractorRegistry ()
 

Private Member Functions

 isFileTypeSupportedByExtractor (File $file, ExtractorInterface $extractor)
 

Private Attributes

ExtractorInterface[][] $extractionServices
 

Detailed Description

Service class to extract metadata

Definition at line 28 of file ExtractorService.php.

Member Function Documentation

◆ extractMetaData()

◆ getExtractionServices()

ExtractorInterface [] TYPO3\CMS\Core\Resource\Service\ExtractorService::getExtractionServices ( string  $driverType)
protected

Get available extraction services

Returns
‪ExtractorInterface[]

Definition at line 66 of file ExtractorService.php.

References TYPO3\CMS\Core\Resource\Service\ExtractorService\getExtractorRegistry().

Referenced by TYPO3\CMS\Core\Resource\Service\ExtractorService\extractMetaData().

◆ getExtractorRegistry()

TYPO3\CMS\Core\Resource\Service\ExtractorService::getExtractorRegistry ( )
protected

Returns an instance of the FileIndexRepository

Definition at line 90 of file ExtractorService.php.

Referenced by TYPO3\CMS\Core\Resource\Service\ExtractorService\getExtractionServices().

◆ isFileTypeSupportedByExtractor()

TYPO3\CMS\Core\Resource\Service\ExtractorService::isFileTypeSupportedByExtractor ( File  $file,
ExtractorInterface  $extractor 
)
private

Check whether the extractor service supports this file according to file type restrictions.

Definition at line 77 of file ExtractorService.php.

References TYPO3\CMS\Core\Resource\Index\ExtractorInterface\getFileTypeRestrictions(), and TYPO3\CMS\Core\Resource\AbstractFile\getType().

Referenced by TYPO3\CMS\Core\Resource\Service\ExtractorService\extractMetaData().

Member Data Documentation

◆ $extractionServices

ExtractorInterface [][] TYPO3\CMS\Core\Resource\Service\ExtractorService::$extractionServices
private

Definition at line 32 of file ExtractorService.php.