Property | Type | Description | |
---|---|---|---|
$encoding | Encoding of the CSV file to be read | ||
$endOfLineCharacter | Defines the End of line | ||
$fieldDelimiter | Defines the character used to delimit fields (one character only) | ||
$fieldEnclosure | Defines the character used to enclose fields (one character only) |
Method | Description | |
---|---|---|
getEncoding ( ) : string | ||
getEndOfLineCharacter ( ) : string | ||
getFieldDelimiter ( ) : string | ||
getFieldEnclosure ( ) : string | ||
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. |
public getEndOfLineCharacter ( ) : string | ||
return | string | EOL for the CSV |
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 $fieldDelimiter |