‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor Class Reference
Inheritance diagram for TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor:
TYPO3\CMS\Core\Resource\Index\ExtractorInterface

Public Member Functions

array getFileTypeRestrictions ()
 
array getDriverRestrictions ()
 
int getPriority ()
 
int getExecutionPriority ()
 
bool canProcess (File $file)
 
array extractMetaData (File $file, array $previousExtractedData=[])
 

Detailed Description

Class Extractor

Definition at line 26 of file Extractor.php.

Member Function Documentation

◆ canProcess()

bool TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::canProcess ( File  $file)

Checks if the given file can be processed by this Extractor

Returns
‪bool

Implements TYPO3\CMS\Core\Resource\Index\ExtractorInterface.

Definition at line 74 of file Extractor.php.

◆ extractMetaData()

array TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::extractMetaData ( File  $file,
array  $previousExtractedData = [] 
)

The actual processing TASK Should return an array with database properties for sys_file_metadata to write

Parameters
array$previousExtractedData‪optional, contains the array of already extracted data
Returns
‪array

Implements TYPO3\CMS\Core\Resource\Index\ExtractorInterface.

Definition at line 86 of file Extractor.php.

◆ getDriverRestrictions()

array TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::getDriverRestrictions ( )

Get all supported DriverClasses empty array indicates no restrictions

Returns
‪array

Implements TYPO3\CMS\Core\Resource\Index\ExtractorInterface.

Definition at line 44 of file Extractor.php.

◆ getExecutionPriority()

int TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::getExecutionPriority ( )

Returns the execution priority of the extraction Service

Returns
‪int

Implements TYPO3\CMS\Core\Resource\Index\ExtractorInterface.

Definition at line 64 of file Extractor.php.

◆ getFileTypeRestrictions()

array TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::getFileTypeRestrictions ( )

Returns an array of supported file types

Returns
‪array

Implements TYPO3\CMS\Core\Resource\Index\ExtractorInterface.

Definition at line 33 of file Extractor.php.

◆ getPriority()

int TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::getPriority ( )

Returns the data priority of the extraction Service

Returns
‪int

Implements TYPO3\CMS\Core\Resource\Index\ExtractorInterface.

Definition at line 54 of file Extractor.php.