package Default
inherited_from \Gems\Export\ExportAbstract

 Methods

Add an export command with specific details. Can be batched.

addExport(array $data, array $modelId = false
Inherited

Parameters

$data

array

Data submitted by export form

$modelId

array

Model Id when multiple models are passed

Add a footer to a specific file

addFooter(string $filename) 
inherited_from \Gems\Export\ExportAbstract::addFooter()

Parameters

$filename

string

The temporary filename while the file is being written

Add a footer to a specific file

addFooter(string $filename) 
Inherited

Parameters

$filename

string

The temporary filename while the file is being written

addNestedRows()

addNestedRows($rows, $nestedNames) 

Parameters

$rows

$nestedNames

Add a separate row to a file

addRow(array $row, \Gems\Export\file $file) 
inherited_from \Gems\Export\ExportAbstract::addRow()

Parameters

$row

array

a row in the model

$file

\Gems\Export\file

The already opened file

Add a separate row to a file

addRow(array $row, \Gems\Export\file $file) 
Inherited

Parameters

$row

array

a row in the model

$file

\Gems\Export\file

The already opened file

Add a separate row to a file

addRowWithCount(array $row, \Gems\Export\file $file, $rowNumber) 

Parameters

$row

array

a row in the model

$file

\Gems\Export\file

The already opened file

$rowNumber

Add model rows to file. Can be batched

addRows(array $data, array $modelId, string $tempFilename, array $filter) 
inherited_from \Gems\Export\ExportAbstract::addRows()

Parameters

$data

array

Data submitted by export form

$modelId

array

Model Id when multiple models are passed

$tempFilename

string

The temporary filename while the file is being written

$filter

array

Filter (limit) to use

Add model rows to file. Can be batched

addRows(array $data, array $modelId, string $tempFilename, array $filter) 
Inherited

Parameters

$data

array

Data submitted by export form

$modelId

array

Model Id when multiple models are passed

$tempFilename

string

The temporary filename while the file is being written

$filter

array

Filter (limit) to use

Finalizes the files stored in $this->files.

finalizeFiles() : \Gems\Export\File

If it has 1 file, it will return that file, if it has more, it will return a zip containing all the files, named as the first file in the array.

inherited_from \Gems\Export\ExportAbstract::finalizeFiles()

Returns

\Gems\Export\Filewith download headers

Finalizes the files stored in $this->files.

finalizeFiles() : \Gems\Export\File
Inherited

If it has 1 file, it will return that file, if it has more, it will return a zip containing all the files, named as the first file in the array.

Returns

\Gems\Export\Filewith download headers

Make sure the $input fieldname is correct for usage in SPSS

fixName(string $input) : string

Should start with alphanum, and contain no spaces

Parameters

$input

string

Returns

string

Formatting of strings for SPSS export. Enclose in single quotes and escape single quotes with a single quote

formatString(\Gems\Export\type $input) : string

Example: This isn't hard to understand ==> 'This isn''t hard to understand'

Parameters

$input

\Gems\Export\type

Returns

string

getDefaultFormValues()

getDefaultFormValues() : array
Inherited

Returns

arrayDefault values in form

form elements for extra options for this particular export option

getFormElements(\MUtil_Form $form, array $data) : array
Inherited

Parameters

$form

\MUtil_Form

Current form to add the form elements

$data

array

current options set in the form

Returns

arrayForm elements

Returns an array of ordered columnnames that have a label

getLabeledColumns() : array
Inherited

Returns

arrayArray of columnnames

getName()

getName() : string
inherited_from \Gems\Export\ExportAbstract::getName()

Returns

stringname of the specific export

getName()

getName() : string
Inherited

Returns

stringname of the specific export

Set the batch to be used by this source

setBatch(\Gems_Task_TaskRunnerBatch $batch) 
Inherited

Use $this->hasBatch to check for existence

Parameters

$batch

\Gems_Task_TaskRunnerBatch

Creates a new file and adds it to the files array

addFile() 
Inherited

Add headers to a specific file

addHeader(string $filename) 
inherited_from \Gems\Export\ExportAbstract::addHeader()

Parameters

$filename

string

The temporary filename while the file is being written

Add headers to a specific file

addHeader(string $filename) 
Inherited

Parameters

$filename

string

The temporary filename while the file is being written

Clean a proposed filename up so it can be used correctly as a filename

cleanupName(string $filename) : string
Inherited

Parameters

$filename

string

Proposed filename

Returns

stringfiltered filename

filterDateFormat()

filterDateFormat($value, $dateFormat, $columnName) 
Inherited

Parameters

$value

$dateFormat

$columnName

filterFormatFunction()

filterFormatFunction($value, $functionName) 
Inherited

Parameters

$value

$functionName

filterHtml()

filterHtml($result) 
Inherited

Parameters

$result

filterItemDisplay()

filterItemDisplay($value, $functionName) 
Inherited

Parameters

$value

$functionName

filterMultiOptions()

filterMultiOptions($result, $multiOptions) 
Inherited

Parameters

$result

$multiOptions

Filter the data in a row so that correct values are being used

filterRow(array $row) : array
Inherited

Parameters

$row

array

a row in the model

Returns

arrayThe filtered row

getColumnHeaders()

getColumnHeaders() 

Returns the files array. It might be stored in the batch session or normal session.

getFiles() : array
Inherited

Returns

arrayFiles array

Get the model to export

getModel() : \MUtil_Model_ModelAbstract
Inherited

Returns

\MUtil_Model_ModelAbstract

Get the number of items in a specific model, using the models paginator

getModelCount(array $filter = true) : integer
Inherited

Parameters

$filter

array

Filter for the model

Returns

integerNumber of items in the model

Preprocess the model to add specific options

preprocessModel() 
inherited_from \Gems\Export\ExportAbstract::preprocessModel()

Preprocess the model to add specific options

preprocessModel() 
Inherited

 Properties

 

$loader

$loader : \Gems_Loader

Default

 

Own session used for non-batch exports

$_session : \Zend_Session_Namespace

Default

 

The batch object if one is set

$batch : \Gems_Task_TaskRunnerBatch

Default

 

Data submitted by export form

$data : array

Default

 

$defaultStringLength

$defaultStringLength 

Default

100
 

Current used file extension

$fileExtension : string

Default

'.xml'
inherited_from \Gems\Export\ExportAbstract::fileExtension
 

Current used file extension

$fileExtension : string

Default

 

The export file name, how it should be downloaded

$filename : string

Default

 

Array of all the filenames, new_name => temp_name

$files : array

Default

 

Model filters for export

$filter : array

Default

 

Array of the loaded first row of the model

$firstRow : array

Default

 

$maxStringLength

$maxStringLength 

Default

2045
 

Current model to export

$model : \MUtil_Model_ModelAbstract

Default

 

Filter settings of the current loaded model

$modelFilter : array

Default

 

Array with the filter options that should be used for this exporter

$modelFilterAttributes : array

Default

array('formatFunction', 'dateFormat', 'storageFormat', 'itemDisplay')
inherited_from \Gems\Export\ExportAbstract::modelFilterAttributes
 

Array with the filter options that should be used for this exporter

$modelFilterAttributes : array

Default

array('multiOptions', 'formatFunction', 'dateFormat', 'storageFormat', 'itemDisplay')
 

Model Id for when multiple models are passed

$modelId : integer

Default

 

How many rows the batch will do in one go

$rowsPerBatch : integer

Default

100
inherited_from \Gems\Export\ExportAbstract::rowsPerBatch
 

How many rows the batch will do in one go

$rowsPerBatch : integer

Default

500
 

$stataFileVersion

$stataFileVersion 

Default

117
 

The temporary filename while the file is being written

$tempFilename : string

Default