Overview

Overview – The How and What of Output Drivers

In brief

Output drivers provide a means of presenting the same information in a variety of formats. The drivers that currently ship with PEAR_Size provide formatting for CVS, HTML, XML and plain text.

Below is an example of creating a driver for XML output:

<?php
$type 
'xml';
//get the factory
$factory = new PEAR_Size_OutputFactory();
//and create the driver...
$driver $factory->createInstance($type);
?>
Output Drivers (Previous) Create an Instance of an output driver. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.