ePages 6.10 - DE_EPAGES/WebInterface/API/XML/RRDiffStatisticExportDriver.pm

Package DE_EPAGES::WebInterface::API::XML::RRDiffStatisticExportDriver

This module implements a SAX2 driver to export request router data.

Example
use DE_EPAGES::WebInterface::API::XML::RRDiffStatisticExportDriver qw (ExportRRDiffStatistic);
ExportRRDiffStatistic($ExportFileName, {'encoding' => 'utf-8'}, { 'Records'=> $aDiffs });
@EXPORT_OK
ExportRRDiffStatistic

Functions

AllRecords
ExportRRDiffStatistic
Pool
PoolsByRecord
Record
addHooks
drive

AllRecords

Adds Record elements , which are included in initial Data.

Syntax
$self->addHook( 'epages' => 'AllRecords' );

ExportRRDiffStatistic

Exports all pools into a file with given encoding

Syntax
ExportRRDiffStatistic($FileName, $hParams, $Data, $Transform);
Example
ExportRRDiffStatistic('Records.xml', {encoding => 'iso-8859-1'}, $aRecords);
Input
$FileName (string)
name of export file
$hParams (ref.hash)
parameter keys:
  • encoding | encoding string (default utf-8)(optional)| Encoding
$aRecords (ref.array.hash)
records
$Transform (ref.code)
transformer function (optional)

Pool

Returns attributes for Pool tag.

PoolsByRecord

Adds Pool elements for each Record.

Syntax
$self->addHook( 'Record' => 'PoolsByRecord' );

Record

Returns attributes for Record tag, converts Date attribute.

addHooks

Adds hooks, means which functions will be called after adding a xml tag.

Syntax
$self->addHooks;

drive

Adds initial tag 'epages' to xml file.

Syntax
$self->drive;