Package DE_EPAGES::FactFinder::API::FactFinderExport
csv export functions
Package DE_EPAGES::FactFinder::API::CSV::FactFinderExportDriver
Functions
- GetCategories
- GetPrices
- addPipes
- exportCSV
- exportLine
- getExportValues
- replaceEqualSigns
- replaceHashSigns
- replaceNewLinesAndQuotes
- replacePipes
- replaceSemicolonsAndSlashes
- writeHeader
GetCategories
returns a refarray to the categories
Syntax |
GetCategories($Product, $Locale); |
Input |
|
Return |
|
GetPrices
returns a string with all the prices in all the active currencies
Syntax |
GetPrices($Product); |
Input |
|
Return |
|
addPipes
returns a string, with pipes added to the both ends if not empty
Syntax |
addPipes($string); |
Input |
|
Return |
|
exportCSV
exports data (2 dim. array) into a file. sets default file format parameters : sep_char = "|" , always_quote = 1 , encoding = encoding(utf-8)
Syntax |
$Exporter->exportCSV($FileName, $hFormat, $aColumns, $ViewObject, $aObjects ); |
Input |
|
exportLine
Export one line, increments monitor.
Syntax |
$aProductIDs = $self->exportLine; |
getExportValues
helper method of exportLine to convert column names to methods names of this exporter and calls the method to get the values of the exported object. The order of return values depends on order of column names.
Syntax |
$self->getExportValues($Product); |
Input |
|
Return |
|
replaceEqualSigns
returns a string, cleaned from equal signs, pipes, new lines and tabs
Syntax |
replaceEqualSigns($string); |
Input |
|
Return |
|
replaceHashSigns
returns a string, cleaned from hash signs, pipes, new lines and tabs
Syntax |
replaceHash($string); |
Input |
|
Return |
|
replaceNewLinesAndQuotes
returns a string, cleaned from new lines and tabs
Syntax |
replaceNewLinesAndQuotes($string); |
Input |
|
Return |
|
replacePipes
returns a string, cleaned from pipes, new lines and tabs
Syntax |
replacePipes($string); |
Input |
|
Return |
|
replaceSemicolonsAndSlashes
returns a string, cleaned from semicolons, slashes, new lines and tabs
Syntax |
replaceSemicolonsAndSlashes($string); |
Input |
|
Return |
|
writeHeader
writes the header
Syntax |
$self->writeHeader(); |