PHP Класс Browscap\Writer\WriterCollection

Автор: Thomas Müller ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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