PHP Class Browscap\Writer\WriterCollection

Author: Thomas Müller ([email protected])
Afficher le fichier Open project: browscap/browscap Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

addWriter() public méthode

add a new writer to the collection
public addWriter ( Browscap\Writer\WriterInterface $writer ) : WriterCollection
$writer Browscap\Writer\WriterInterface
Résultat WriterCollection

close() public méthode

closes the Writer and the written File
public close ( ) : WriterCollection
Résultat WriterCollection

fileEnd() public méthode

Generates a end sequence for the output file
public fileEnd ( ) : WriterCollection
Résultat WriterCollection

fileStart() public méthode

Generates a start sequence for the output file
public fileStart ( ) : WriterCollection
Résultat WriterCollection

renderAllDivisionsFooter() public méthode

renders the footer for all divisions
public renderAllDivisionsFooter ( ) : WriterCollection
Résultat WriterCollection

renderAllDivisionsHeader() public méthode

renders the header for all divisions
public renderAllDivisionsHeader ( DataCollection $collection ) : WriterCollection
$collection Browscap\Data\DataCollection
Résultat WriterCollection

renderDivisionFooter() public méthode

renders the footer for a division
public renderDivisionFooter ( ) : WriterCollection
Résultat WriterCollection

renderDivisionHeader() public méthode

renders the header for a division
public renderDivisionHeader ( string $division, string $parent = 'DefaultProperties' ) : WriterCollection
$division string
$parent string
Résultat WriterCollection

renderHeader() public méthode

Generate the header
public renderHeader ( array $comments = [] ) : WriterCollection
$comments array
Résultat WriterCollection

renderSectionBody() public méthode

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
Résultat WriterCollection

renderSectionFooter() public méthode

renders the footer for a section
public renderSectionFooter ( string $sectionName = '' ) : WriterCollection
$sectionName string
Résultat WriterCollection

renderSectionHeader() public méthode

renders the header for a section
public renderSectionHeader ( string $sectionName ) : WriterCollection
$sectionName string
Résultat WriterCollection

renderVersion() public méthode

renders the version information
public renderVersion ( string $version, DataCollection $collection ) : WriterCollection
$version string
$collection Browscap\Data\DataCollection
Résultat WriterCollection

setExpander() public méthode

public setExpander ( Expander $expander ) : Browscap\Writer\WriterInterface
$expander Browscap\Data\Expander
Résultat Browscap\Writer\WriterInterface

setSilent() public méthode

public setSilent ( Division $division ) : WriterCollection
$division Browscap\Data\Division
Résultat WriterCollection

setSilentSection() public méthode

public setSilentSection ( mixed $section ) : WriterCollection
$section mixed
Résultat WriterCollection