PHP 클래스 Browscap\Writer\WriterCollection

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

공개 메소드들

메소드 설명
addWriter ( Browscap\Writer\WriterInterface $writer ) : WriterCollection add a new writer to the collection
close ( ) : WriterCollection closes the Writer and the written File
fileEnd ( ) : WriterCollection Generates a end sequence for the output file
fileStart ( ) : WriterCollection Generates a start sequence for the output file
renderAllDivisionsFooter ( ) : WriterCollection renders the footer for all divisions
renderAllDivisionsHeader ( DataCollection $collection ) : WriterCollection renders the header for all divisions
renderDivisionFooter ( ) : WriterCollection renders the footer for a division
renderDivisionHeader ( string $division, string $parent = 'DefaultProperties' ) : WriterCollection renders the header for a division
renderHeader ( array $comments = [] ) : WriterCollection Generate the header
renderSectionBody ( array $section, DataCollection $collection, array $sections = [], string $sectionName = '' ) : WriterCollection renders all found useragents into a string
renderSectionFooter ( string $sectionName = '' ) : WriterCollection renders the footer for a section
renderSectionHeader ( string $sectionName ) : WriterCollection renders the header for a section
renderVersion ( string $version, DataCollection $collection ) : WriterCollection renders the version information
setExpander ( Expander $expander ) : Browscap\Writer\WriterInterface
setSilent ( Division $division ) : WriterCollection
setSilentSection ( mixed $section ) : WriterCollection

메소드 상세

addWriter() 공개 메소드

add a new writer to the collection
public addWriter ( Browscap\Writer\WriterInterface $writer ) : WriterCollection
$writer Browscap\Writer\WriterInterface
리턴 WriterCollection

close() 공개 메소드

closes the Writer and the written File
public close ( ) : WriterCollection
리턴 WriterCollection

fileEnd() 공개 메소드

Generates a end sequence for the output file
public fileEnd ( ) : WriterCollection
리턴 WriterCollection

fileStart() 공개 메소드

Generates a start sequence for the output file
public fileStart ( ) : WriterCollection
리턴 WriterCollection

renderAllDivisionsFooter() 공개 메소드

renders the footer for all divisions
public renderAllDivisionsFooter ( ) : WriterCollection
리턴 WriterCollection

renderAllDivisionsHeader() 공개 메소드

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

renderDivisionFooter() 공개 메소드

renders the footer for a division
public renderDivisionFooter ( ) : WriterCollection
리턴 WriterCollection

renderDivisionHeader() 공개 메소드

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

renderHeader() 공개 메소드

Generate the header
public renderHeader ( array $comments = [] ) : WriterCollection
$comments array
리턴 WriterCollection

renderSectionBody() 공개 메소드

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

renderSectionFooter() 공개 메소드

renders the footer for a section
public renderSectionFooter ( string $sectionName = '' ) : WriterCollection
$sectionName string
리턴 WriterCollection

renderSectionHeader() 공개 메소드

renders the header for a section
public renderSectionHeader ( string $sectionName ) : WriterCollection
$sectionName string
리턴 WriterCollection

renderVersion() 공개 메소드

renders the version information
public renderVersion ( string $version, DataCollection $collection ) : WriterCollection
$version string
$collection Browscap\Data\DataCollection
리턴 WriterCollection

setExpander() 공개 메소드

public setExpander ( Expander $expander ) : Browscap\Writer\WriterInterface
$expander Browscap\Data\Expander
리턴 Browscap\Writer\WriterInterface

setSilent() 공개 메소드

public setSilent ( Division $division ) : WriterCollection
$division Browscap\Data\Division
리턴 WriterCollection

setSilentSection() 공개 메소드

public setSilentSection ( mixed $section ) : WriterCollection
$section mixed
리턴 WriterCollection