tasks/ext/pdo/PlainPDOResultFormatter.php

Show: inherited
Table of Contents

\PlainPDOResultFormatter

Package: phing\tasks\ext\pdo

Plain text formatter for PDO results.

Parent(s)
\PDOResultFormatter
Author
Hans Lellelid  
Since
2.3.0  

Properties

Propertyprivatestring  $coldelimiter= '","'

Column delimiter.

Defaults to ','

Default value","Details
Type
string
Propertyprivateboolean  $colsprinted= 'false'

Have column headers been printed?

Default valuefalseDetails
Type
boolean
Propertyprotected\Writer  $out= ''
inherited

Output writer.

Inherited from: \PDOResultFormatter::$$out
Details
Type
\Writer
Inherited_from
\PDOResultFormatter::$$out  
Propertyprivatestring  $rowdelimiter= 'PHP_EOL'

Row delimiter.

Defaults to PHP_EOL.

Default valuePHP_EOLDetails
Type
string
Propertyprivateboolean  $showheaders= 'true'

Whether to show headers.

Default valuetrueDetails
Type
boolean

Methods

methodpublicclose( ) : void
inherited

Perform any final tasks and Close the writer.

Inherited from: \PDOResultFormatter::close()
methodpublicgetOutput( ) : \Writer
inherited

Gets the output writer.

Inherited from: \PDOResultFormatter::getOutput()
Returns
Type Description
\Writer
methodpublicgetPreferredOutfile( ) : string

Gets the preferred output filename for this formatter.

Returns
Type Description
string
methodpublicinitialize( ) : void
inherited

Perform any initialization.

Inherited from: \PDOResultFormatter::initialize()
methodpublicprocessRow( array $row ) : void

Processes a specific row from PDO result set.

Parameters
Name Type Description
$row array

Row of PDO result set.

methodpublicsetColdelim( string $v ) : void

Sets the column delimiter.

Parameters
Name Type Description
$v string
methodpublicsetOutput( \Writer $out ) : void
inherited

Sets the output writer.

Inherited from: \PDOResultFormatter::setOutput()
Parameters
Name Type Description
$out \Writer
methodpublicsetRowdelim( string $v ) : void

Sets the row delimiter.

Parameters
Name Type Description
$v string
methodpublicsetShowheaders( boolean $v ) : void

Set the showheaders attribute.

Parameters
Name Type Description
$v boolean
Documentation was generated by DocBlox 0.18.1.