ImageCsvParser
class ImageCsvParser extends CsvParser
Constants
COLUMN_SYNONYMS |
Column name synonyms. |
Properties
SplFileObject | $fileObject | from MetadataParser |
Methods
Get the MIME types that files known by this parser can have.
Get the name of the parser to show it to users selecting files.
Returns true if the file is in the format understood by the parser.
Get a filled VolumeMetadata object based on the file.
Cast the value to float if it is not null or an empty string.
Details
in
CsvParser at line 33
static array
getKnownMimeTypes()
Get the MIME types that files known by this parser can have.
Example: ['text/csv']
in
CsvParser at line 44
static string
getName()
Get the name of the parser to show it to users selecting files.
Example: 'BIIGLE CSV'
in
MetadataParser at line 26
__construct(SplFileInfo $file)
No description
in
CsvParser at line 52
bool
recognizesFile()
Returns true if the file is in the format understood by the parser.
at line 12
VolumeMetadata
getMetadata()
Get a filled VolumeMetadata object based on the file.
in
MetadataParser at line 41
protected SplFileObject
getFileObject()
No description
in
CsvParser at line 78
protected SeekableIterator
getCsvIterator()
No description
in
CsvParser at line 86
protected array
processFirstLine(array $line)
No description
in
CsvParser at line 96
protected array
getKeyMap(array $line)
No description
in
CsvParser at line 115
protected float|null
maybeCastToFloat(string|null $value)
Cast the value to float if it is not null or an empty string.