PHP 클래스 Box\Spout\Reader\CSV\Reader

상속: extends Box\Spout\Reader\AbstractReader
파일 보기 프로젝트 열기: box/spout

보호된 프로퍼티들

프로퍼티 타입 설명
$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"

공개 메소드들

메소드 설명
setEncoding ( string $encoding ) : Reader Sets the encoding of the CSV file to be read.
setEndOfLineCharacter ( string $endOfLineCharacter ) : Reader Sets the EOL for the CSV.
setFieldDelimiter ( string $fieldDelimiter ) : Reader Sets the field delimiter for the CSV.
setFieldEnclosure ( string $fieldEnclosure ) : Reader Sets the field enclosure for the CSV.

보호된 메소드들

메소드 설명
closeReader ( ) : void Closes the reader. To be used after reading the file.
doesSupportStreamWrapper ( ) : boolean Returns whether stream wrappers are supported
getConcreteSheetIterator ( ) : SheetIterator Returns an iterator to iterate over sheets.
getOptions ( ) : ReaderOptions Returns the reader's current options
openReader ( string $filePath ) : void Opens the file at the given path to make it ready to be read.

메소드 상세

closeReader() 보호된 메소드

Closes the reader. To be used after reading the file.
protected closeReader ( ) : void
리턴 void

doesSupportStreamWrapper() 보호된 메소드

Returns whether stream wrappers are supported
protected doesSupportStreamWrapper ( ) : boolean
리턴 boolean

getConcreteSheetIterator() 보호된 메소드

Returns an iterator to iterate over sheets.
protected getConcreteSheetIterator ( ) : SheetIterator
리턴 SheetIterator To iterate over sheets

getOptions() 보호된 메소드

Returns the reader's current options
protected getOptions ( ) : ReaderOptions
리턴 ReaderOptions

openReader() 보호된 메소드

If setEncoding() was not called, it assumes that the file is encoded in UTF-8.
protected openReader ( string $filePath ) : void
$filePath string Path of the CSV file to be read
리턴 void

setEncoding() 공개 메소드

Needs to be called before opening the reader.
public setEncoding ( string $encoding ) : Reader
$encoding string Encoding of the CSV file to be read
리턴 Reader

setEndOfLineCharacter() 공개 메소드

Needs to be called before opening the reader.
public setEndOfLineCharacter ( string $endOfLineCharacter ) : Reader
$endOfLineCharacter string used to properly get lines from the CSV file.
리턴 Reader

setFieldDelimiter() 공개 메소드

Needs to be called before opening the reader.
public setFieldDelimiter ( string $fieldDelimiter ) : Reader
$fieldDelimiter string Character that delimits fields
리턴 Reader

setFieldEnclosure() 공개 메소드

Needs to be called before opening the reader.
public setFieldEnclosure ( string $fieldEnclosure ) : Reader
$fieldEnclosure string Character that enclose fields
리턴 Reader

프로퍼티 상세

$filePointer 보호되어 있는 프로퍼티

Pointer to the file to be written
protected $filePointer

$originalAutoDetectLineEndings 보호되어 있는 프로퍼티

Original value for the "auto_detect_line_endings" INI value
protected $originalAutoDetectLineEndings

$sheetIterator 보호되어 있는 프로퍼티

To iterator over the CSV unique "sheet"
protected $sheetIterator