Class FilePrinter

Description

Printer that redirects its output to a file

  • since: 1.0

Located in /Reporting/FilePrinter.php (line 25)

Printer
   |
   --FilePrinter
Direct descendents
Class Description
MultiFilePrinter Printer that outputs to multiple files
Variable Summary
SplFileObject $file
Method Summary
FilePrinter __construct (Formatter $formatter, Parser $parser)
SplFileObject createFileObject (string $file, [bool $binary = false])
void printData (string $data)
Variables
int $bytesWritten (line 35)
  • access: protected
SplFileObject $file (line 30)
  • access: protected

Inherited Variables

Inherited from Printer

Printer::$formatter
Printer::$isParsingTrack
Printer::$params
Printer::$parser
Printer::$parseTime
Printer::$totalTime
Methods
Constructor __construct (line 43)
  • since: 1.0
  • access: public
FilePrinter __construct (Formatter $formatter, Parser $parser)

Redefinition of:
Printer::__construct()
Constructor

Redefined in descendants as:
createFileObject (line 58)

Opens and returns a file object suitable for writing

SplFileObject createFileObject (string $file, [bool $binary = false])
  • string $file: Path to the file to open
  • bool $binary: Whether to open the file in binary mode
printData (line 68)
void printData (string $data)
  • string $data

Redefinition of:
Printer::printData()
Prints the data

Inherited Methods

Inherited From Printer

Printer::__construct()
Printer::doPostProcessing()
Printer::isParsingTrack()
Printer::printAll()
Printer::printData()
Printer::printDelta()
Printer::printEof()
Printer::printEvent()
Printer::printFileHeader()
Printer::printNext()
Printer::printTrackHeader()
Printer::setParameter()

Documentation generated on Sun, 25 Oct 2009 22:38:16 -0700 by phpDocumentor 1.4.3