TextExtractorRegistry
class \
- Implements
- SingletonInterface
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $instances : TextExtractorInterface[]
- Instance cache for text extractor classes
- $textExtractorClasses : array
- Registered text extractor class names
Methods
- getTextExtractor() : TextExtractorInterface|null
- Checks whether any registered text extractor can deal with a given file and returns it.
- getTextExtractorInstances() : TextExtractorInterface[]
- Get all registered text extractor instances
- registerTextExtractor() : mixed
- Allows to register a text extractor class
- createTextExtractorInstance() : TextExtractorInterface
- Create an instance of a certain text extractor class
Properties
$instances
Instance cache for text extractor classes
protected
TextExtractorInterface[]
$instances
= []
$textExtractorClasses
Registered text extractor class names
protected
array
$textExtractorClasses
= []
Methods
getTextExtractor()
Checks whether any registered text extractor can deal with a given file and returns it.
public
getTextExtractor(FileInterface $file) : TextExtractorInterface|null
Parameters
- $file : FileInterface
Return values
TextExtractorInterface|nullgetTextExtractorInstances()
Get all registered text extractor instances
public
getTextExtractorInstances() : TextExtractorInterface[]
Return values
TextExtractorInterface[]registerTextExtractor()
Allows to register a text extractor class
public
registerTextExtractor(string $className) : mixed
Parameters
- $className : string
Tags
createTextExtractorInstance()
Create an instance of a certain text extractor class
protected
createTextExtractorInstance(string $className) : TextExtractorInterface
Parameters
- $className : string