classes/phing/tasks/ext/pdo/XMLPDOResultFormatter.php

\XMLPDOResultFormatter

XML formatter for PDO results.

This class reprsents the output of a query using a simple XML schema.

value value2 value value2

The actual names of the colums will depend on the fetchmode that was used with PDO.

Extends from
\PDOResultFormatter
author
Hans Lellelid
package
phing.tasks.ext.pdo
since
2.3.0

Properties

Propertyprivate\DOMDocument  $doc= ''

The XML document being created.

Details
Type
\DOMDocument
Propertyprivatestring  $encoding= ''

XML document encoding

Details
Type
string
Propertyprivateboolean  $formatOutput= 'true'

Default valuetrueDetails
Type
boolean
Propertyprivate\DOMElement  $rootNode= ''

Details
Type
\DOMElement

Methods

methodpublic  close( ) :
Write XML to file and free the DOM objects.
methodpublic  getPreferredOutfile( ) : string
Gets a preferred filename for an output file.

If no filename is specified, this is where the results will be placed (unless usefile=false).

Returns
Type Description
string
methodpublic  initialize( ) :
methodpublic  processRow( array $row ) :
Processes a specific row from PDO result set.
Parameters
Name Type Description
$row array Row of PDO result set.
methodpublic  setEncoding( string $v ) :
Set the DOM document encoding.
Parameters
Name Type Description
$v string
methodpublic  setFormatOutput( boolean $v ) :
Parameters
Name Type Description
$v boolean
Documentation was generated by DocBlox 0.13.1.