A class to represent the nested <formatter> element for PDO SQL results.
This class is inspired by the similarly-named class in the PHPUnit tasks.
author
|
Hans Lellelid hans@xmpl.org
|
package
|
phing.tasks.ext.pdo
|
since
|
2.3.0
|
Methods
Construct a new PDOSQLExecFormatterElement with parent task.
__construct(\PDOSQLExecTask $parentTask)
Supports nested <param> element (for custom formatter classes).
createParam() : \Parameter
Whether output should be appended to file.
getAppend() : boolean
Gets a default output writer for this task.
getDefaultOutput() : \Writer
Get the output file.
getOutfile() : \PhingFile
Gets a configured output writer.
getOutputWriter() : \Writer
Return whether to write formatter results to file.
getUseFile() : boolean
Configures wrapped formatter class with any attributes on this element.
prepare()
whether output should be appended to or overwrite
an existing file. Defaults to false.
setAppend(boolean $append)
Set classname for a custom formatter (must extend PDOResultFormatter).
setClassName(string $className)
Sets the column delimiter.
setColdelim(string $v)
Set the DOM document encoding.
setEncoding(string $v)
Sets the row delimiter.
setRowdelim(string $v)
Sets the formatter type.
setType(string $type)
Set whether to write formatter results to file.
setUseFile(boolean $useFile)
Properties
The type of the formatter (used for built-in formatter classes).
type : string
Whether to use file (or write output to phing log).
useFile : boolean
Output file for formatter.
outfile : \PhingFile
Encoding for XML output.
encoding : string
Column delimiter.
coldelimiter : string
Row delimiter.
rowdelimiter : string
Append to an existing file or overwrite it?
append : boolean
parentTask
parentTask : \PDOSQLExecTask