PHP 클래스 Browscap\Writer\CsvWriter

저자: Thomas Müller ([email protected])
상속: implements Browscap\Writer\WriterInterface
파일 보기 프로젝트 열기: browscap/browscap 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $file )
close ( ) : Browscap\Writer\WriterInterface closes the Writer and the written File
fileEnd ( ) : Browscap\Writer\WriterInterface Generates a end sequence for the output file
fileStart ( ) : Browscap\Writer\WriterInterface Generates a start sequence for the output file
getFilter ( ) : Browscap\Filter\FilterInterface
getFormatter ( ) : Browscap\Formatter\FormatterInterface
getLogger ( ) : Psr\Log\LoggerInterface
getType ( ) : string returns the Type of the writer
isSilent ( ) : boolean
renderAllDivisionsFooter ( ) : Browscap\Writer\WriterInterface renders the footer for all divisions
renderAllDivisionsHeader ( DataCollection $collection ) : Browscap\Writer\WriterInterface renders the header for all divisions
renderDivisionFooter ( ) : Browscap\Writer\WriterInterface renders the footer for a division
renderDivisionHeader ( string $division, string $parent = 'DefaultProperties' ) : Browscap\Writer\WriterInterface renders the header for a division
renderHeader ( array $comments = [] ) : Browscap\Writer\WriterInterface Generate the header
renderSectionBody ( array $section, DataCollection $collection, array $sections = [], string $sectionName = '' ) : CsvWriter renders all found useragents into a string
renderSectionFooter ( string $sectionName = '' ) : Browscap\Writer\WriterInterface renders the footer for a section
renderSectionHeader ( string $sectionName ) : Browscap\Writer\WriterInterface renders the header for a section
renderVersion ( array $versionData = [] ) : Browscap\Writer\WriterInterface renders the version information
setFilter ( Browscap\Filter\FilterInterface $filter ) : Browscap\Writer\WriterInterface
setFormatter ( Browscap\Formatter\FormatterInterface $formatter ) : Browscap\Writer\WriterInterface
setLogger ( Psr\Log\LoggerInterface $logger ) : Browscap\Writer\WriterInterface
setSilent ( boolean $silent ) : Browscap\Writer\WriterInterface

비공개 메소드들

메소드 설명
detectMasterParent ( string $key, array $properties ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( string $file )
$file string

close() 공개 메소드

closes the Writer and the written File
public close ( ) : Browscap\Writer\WriterInterface
리턴 Browscap\Writer\WriterInterface

fileEnd() 공개 메소드

Generates a end sequence for the output file
public fileEnd ( ) : Browscap\Writer\WriterInterface
리턴 Browscap\Writer\WriterInterface

fileStart() 공개 메소드

Generates a start sequence for the output file
public fileStart ( ) : Browscap\Writer\WriterInterface
리턴 Browscap\Writer\WriterInterface

getFilter() 공개 메소드

public getFilter ( ) : Browscap\Filter\FilterInterface
리턴 Browscap\Filter\FilterInterface

getFormatter() 공개 메소드

public getFormatter ( ) : Browscap\Formatter\FormatterInterface
리턴 Browscap\Formatter\FormatterInterface

getLogger() 공개 메소드

public getLogger ( ) : Psr\Log\LoggerInterface
리턴 Psr\Log\LoggerInterface

getType() 공개 메소드

returns the Type of the writer
public getType ( ) : string
리턴 string

isSilent() 공개 메소드

public isSilent ( ) : boolean
리턴 boolean

renderAllDivisionsFooter() 공개 메소드

renders the footer for all divisions
public renderAllDivisionsFooter ( ) : Browscap\Writer\WriterInterface
리턴 Browscap\Writer\WriterInterface

renderAllDivisionsHeader() 공개 메소드

renders the header for all divisions
public renderAllDivisionsHeader ( DataCollection $collection ) : Browscap\Writer\WriterInterface
$collection Browscap\Data\DataCollection
리턴 Browscap\Writer\WriterInterface

renderDivisionFooter() 공개 메소드

renders the footer for a division
public renderDivisionFooter ( ) : Browscap\Writer\WriterInterface
리턴 Browscap\Writer\WriterInterface

renderDivisionHeader() 공개 메소드

renders the header for a division
public renderDivisionHeader ( string $division, string $parent = 'DefaultProperties' ) : Browscap\Writer\WriterInterface
$division string
$parent string
리턴 Browscap\Writer\WriterInterface

renderHeader() 공개 메소드

Generate the header
public renderHeader ( array $comments = [] ) : Browscap\Writer\WriterInterface
$comments array
리턴 Browscap\Writer\WriterInterface

renderSectionBody() 공개 메소드

renders all found useragents into a string
public renderSectionBody ( array $section, DataCollection $collection, array $sections = [], string $sectionName = '' ) : CsvWriter
$section array
$collection Browscap\Data\DataCollection
$sections array
$sectionName string
리턴 CsvWriter

renderSectionFooter() 공개 메소드

renders the footer for a section
public renderSectionFooter ( string $sectionName = '' ) : Browscap\Writer\WriterInterface
$sectionName string
리턴 Browscap\Writer\WriterInterface

renderSectionHeader() 공개 메소드

renders the header for a section
public renderSectionHeader ( string $sectionName ) : Browscap\Writer\WriterInterface
$sectionName string
리턴 Browscap\Writer\WriterInterface

renderVersion() 공개 메소드

renders the version information
public renderVersion ( array $versionData = [] ) : Browscap\Writer\WriterInterface
$versionData array
리턴 Browscap\Writer\WriterInterface

setFilter() 공개 메소드

public setFilter ( Browscap\Filter\FilterInterface $filter ) : Browscap\Writer\WriterInterface
$filter Browscap\Filter\FilterInterface
리턴 Browscap\Writer\WriterInterface

setFormatter() 공개 메소드

public setFormatter ( Browscap\Formatter\FormatterInterface $formatter ) : Browscap\Writer\WriterInterface
$formatter Browscap\Formatter\FormatterInterface
리턴 Browscap\Writer\WriterInterface

setLogger() 공개 메소드

public setLogger ( Psr\Log\LoggerInterface $logger ) : Browscap\Writer\WriterInterface
$logger Psr\Log\LoggerInterface
리턴 Browscap\Writer\WriterInterface

setSilent() 공개 메소드

public setSilent ( boolean $silent ) : Browscap\Writer\WriterInterface
$silent boolean
리턴 Browscap\Writer\WriterInterface