Property | Type | Description | |
---|---|---|---|
$filePointer | Pointer to the file to be written | ||
$originalAutoDetectLineEndings | Original value for the "auto_detect_line_endings" INI value | ||
$sheetIterator | To iterator over the CSV unique "sheet" |
Method | Description | |
---|---|---|
setEncoding ( string $encoding ) : |
Sets the encoding of the CSV file to be read. | |
setEndOfLineCharacter ( string $endOfLineCharacter ) : |
Sets the EOL for the CSV. | |
setFieldDelimiter ( string $fieldDelimiter ) : |
Sets the field delimiter for the CSV. | |
setFieldEnclosure ( string $fieldEnclosure ) : |
Sets the field enclosure for the CSV. |
Method | Description | |
---|---|---|
closeReader ( ) : void | Closes the reader. To be used after reading the file. | |
doesSupportStreamWrapper ( ) : boolean | Returns whether stream wrappers are supported | |
getConcreteSheetIterator ( ) : |
Returns an iterator to iterate over sheets. | |
getOptions ( ) : |
Returns the reader's current options | |
openReader ( string $filePath ) : void | Opens the file at the given path to make it ready to be read. |
protected closeReader ( ) : void | ||
return | void |
protected doesSupportStreamWrapper ( ) : boolean | ||
return | boolean |
protected getConcreteSheetIterator ( ) : |
||
return | To iterate over sheets |
protected getOptions ( ) : |
||
return |
protected openReader ( string $filePath ) : void | ||
$filePath | string | Path of the CSV file to be read |
return | void |
public setEncoding ( string $encoding ) : |
||
$encoding | string | Encoding of the CSV file to be read |
return |
public setEndOfLineCharacter ( string $endOfLineCharacter ) : |
||
$endOfLineCharacter | string | used to properly get lines from the CSV file. |
return |
public setFieldDelimiter ( string $fieldDelimiter ) : |
||
$fieldDelimiter | string | Character that delimits fields |
return |
public setFieldEnclosure ( string $fieldEnclosure ) : |
||
$fieldEnclosure | string | Character that enclose fields |
return |
protected $originalAutoDetectLineEndings |