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

상속: extends Box\Spout\Reader\Common\ReaderOptions
파일 보기 프로젝트 열기: box/spout 1 사용 예제들

보호된 프로퍼티들

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

공개 메소드들

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

메소드 상세

getEncoding() 공개 메소드

public getEncoding ( ) : string
리턴 string

getEndOfLineCharacter() 공개 메소드

public getEndOfLineCharacter ( ) : string
리턴 string EOL for the CSV

getFieldDelimiter() 공개 메소드

public getFieldDelimiter ( ) : string
리턴 string

getFieldEnclosure() 공개 메소드

public getFieldEnclosure ( ) : string
리턴 string

setEncoding() 공개 메소드

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

setEndOfLineCharacter() 공개 메소드

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

setFieldDelimiter() 공개 메소드

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

setFieldEnclosure() 공개 메소드

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

프로퍼티 상세

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

Encoding of the CSV file to be read
protected $encoding

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

Defines the End of line
protected $endOfLineCharacter

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

Defines the character used to delimit fields (one character only)
protected $fieldDelimiter

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

Defines the character used to enclose fields (one character only)
protected $fieldEnclosure