TYPO3
7.6
|
Public Member Functions | |
registerTextExtractor ($className) | |
getTextExtractorInstances () | |
getTextExtractor (FileInterface $file) | |
Static Public Member Functions | |
static | getInstance () |
Protected Member Functions | |
createTextExtractorInstance ($className) | |
Protected Attributes | |
$textExtractorClasses = array() | |
$instances = array() | |
Class TextExtractorRegistry
Definition at line 25 of file TextExtractorRegistry.php.
|
protected |
Create an instance of a certain text extractor class
string | $className |
Definition at line 94 of file TextExtractorRegistry.php.
References GeneralUtility\makeInstance().
Referenced by TextExtractorRegistry\getTextExtractorInstances().
|
static |
Returns an instance of this class
Definition at line 47 of file TextExtractorRegistry.php.
References GeneralUtility\makeInstance().
getTextExtractor | ( | FileInterface | $file | ) |
Checks whether any registered text extractor can deal with a given file and returns it.
FileInterface | $file |
Definition at line 106 of file TextExtractorRegistry.php.
References TextExtractorRegistry\getTextExtractorInstances().
getTextExtractorInstances | ( | ) |
Get all registered text extractor instances
Definition at line 76 of file TextExtractorRegistry.php.
References TextExtractorRegistry\$instances, and TextExtractorRegistry\createTextExtractorInstance().
Referenced by TextExtractorRegistry\getTextExtractor().
registerTextExtractor | ( | $className | ) |
Allows to register a text extractor class
string | $className |
\InvalidArgumentException |
Definition at line 58 of file TextExtractorRegistry.php.
|
protected |
Definition at line 39 of file TextExtractorRegistry.php.
Referenced by TextExtractorRegistry\getTextExtractorInstances().
|
protected |
Definition at line 32 of file TextExtractorRegistry.php.