MetadataParser
abstract class MetadataParser
Properties
SplFileObject | $fileObject |
Methods
static array
getKnownMimeTypes()
Get the MIME types that files known by this parser can have.
static string
getName()
Get the name of the parser to show it to users selecting files.
bool
recognizesFile()
Returns true if the file is in the format understood by the parser.
getMetadata()
Get a filled VolumeMetadata object based on the file.
getFileObject()
No description
Details
at line 17
abstract static array
getKnownMimeTypes()
Get the MIME types that files known by this parser can have.
Example: ['text/csv']
at line 24
abstract static string
getName()
Get the name of the parser to show it to users selecting files.
Example: 'BIIGLE CSV'
at line 26
__construct(SplFileInfo $file)
No description
at line 34
abstract bool
recognizesFile()
Returns true if the file is in the format understood by the parser.
at line 39
abstract VolumeMetadata
getMetadata()
Get a filled VolumeMetadata object based on the file.
at line 41
protected SplFileObject
getFileObject()
No description