class CRM_Financial_BAO_ExportFormat_CSV extends CRM_Financial_BAO_ExportFormat

Properties

protected array $_exportParams data which the individual export formats will output in the desired format. from CRM_Financial_BAO_ExportFormat
static protected CRM_Core_Smarty $_template smarty template. from CRM_Financial_BAO_ExportFormat
static $complementaryTables For this phase, we always output these records too so that there isn't data referenced in the journal entries that isn't defined anywhere.

Methods

__construct()

Class constructor.

mixed
export(array $exportParams)

No description

output(string $fileName = NULL)

Exports sbatches in $this->_batchIds, and saves to file.

makeExport(array $export)

Generate CSV array for export.

string
getMimeType()

No description

string
getFileExtension()

No description

static object
getTemplate()

No description

assign($var, null $value = NULL)

No description

static null
format($s, string $type = 'string')

No description

static 
createActivityExport($batchIds, string $fileName)

No description

bool
createZip(array $files = array(), null $destination = NULL, bool $overwrite = FALSE)

No description

Object
generateExportQuery(int $batchId)

No description

string
putFile($export)

No description

array
formatHeaders(array $values)

Format table headers.

exportACCNT()

No description

exportCUST()

No description

exportTRANS()

No description

Details

at line 53
__construct()

Class constructor.

at line 60
mixed export(array $exportParams)

Parameters

array $exportParams

Return Value

mixed

output(string $fileName = NULL)

Exports sbatches in $this->_batchIds, and saves to file.

Parameters

string $fileName
  • use this file name (if applicable)

at line 175
makeExport(array $export)

Generate CSV array for export.

Parameters

array $export

string getMimeType()

Return Value

string

at line 241
string getFileExtension()

Return Value

string

static object getTemplate()

Return Value

object

assign($var, null $value = NULL)

Parameters

$var
null $value

static null format($s, string $type = 'string')

Parameters

$s
string $type

Return Value

null

initiateDownload()

static createActivityExport($batchIds, string $fileName)

Parameters

$batchIds
string $fileName

Exceptions

CRM_Core_Exception

bool createZip(array $files = array(), null $destination = NULL, bool $overwrite = FALSE)

Parameters

array $files
null $destination
bool $overwrite

Return Value

bool

at line 79
Object generateExportQuery(int $batchId)

Parameters

int $batchId

Return Value

Object

at line 137
string putFile($export)

Parameters

$export

Return Value

string

at line 159
array formatHeaders(array $values)

Format table headers.

Parameters

array $values

Return Value

array

at line 245
exportACCNT()

at line 248
exportCUST()

at line 251
exportTRANS()