package | Gems |
---|---|
subpackage | Export |
copyright | Copyright (c) 2015 Erasmus MC |
license | New BSD License |
since | Class available since version 1.7.1 |
inherited_from | \Gems\Export\ExportAbstract |
addExport(array $data, array $modelId = false
)
array
Data submitted by export form
array
Model Id when multiple models are passed
addRow(array $row, \Gems\Export\file $file)
inherited_from | \Gems\Export\ExportAbstract::addRow() |
---|
array
a row in the model
\Gems\Export\file
The already opened file
addRow(array $row, \Gems\Export\file $file)
array
a row in the model
\Gems\Export\file
The already opened file
addRowWithCount(array $row, $excelObject, $rowNumber)
array
a row in the model
addRows(array $data, array $modelId, string $tempFilename, array $filter)
inherited_from | \Gems\Export\ExportAbstract::addRows() |
---|
array
Data submitted by export form
array
Model Id when multiple models are passed
string
The temporary filename while the file is being written
array
Filter (limit) to use
addRows(array $data, array $modelId, string $tempFilename, array $filter)
array
Data submitted by export form
array
Model Id when multiple models are passed
string
The temporary filename while the file is being written
array
Filter (limit) to use
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.
\Gems\Export\File
with download headersgetDefaultFormValues() : array
inherited_from | \Gems\Export\ExportAbstract::getDefaultFormValues() |
---|
array
Default values in formgetDefaultFormValues() : array
array
Default values in formgetFormElements(\MUtil_Form $form, array $data) : array
inherited_from | \Gems\Export\ExportAbstract::getFormElements() |
---|
\MUtil_Form
Current form to add the form elements
array
current options set in the form
array
Form elementsgetFormElements(\MUtil_Form $form, array $data) : array
\MUtil_Form
Current form to add the form elements
array
current options set in the form
array
Form elementsgetLabeledColumns() : array
array
Array of columnnamesgetName() : string
inherited_from | \Gems\Export\ExportAbstract::getName() |
---|
string
name of the specific exportgetName() : string
string
name of the specific exportsetBatch(\Gems_Task_TaskRunnerBatch $batch)
Use $this->hasBatch to check for existence
\Gems_Task_TaskRunnerBatch
addFile()
addHeader(string $filename)
string
The temporary filename while the file is being written
addheader(string $filename)
string
The temporary filename while the file is being written
cleanupName(string $filename) : string
string
Proposed filename
string
filtered filenamefilterDateFormat($value, $dateFormat, $columnName)
inherited_from | \Gems\Export\ExportAbstract::filterDateFormat() |
---|
filterDateFormat($value, $dateFormat, $columnName)
filterFormatFunction($value, $functionName)
filterHtml($result)
filterItemDisplay($value, $functionName)
filterMultiOptions($result, $multiOptions)
filterRow(array $row) : array
array
a row in the model
array
The filtered rowgetColumn($x)
getColumnHeaders()
getFiles() : array
array
Files arraygetModel() : \MUtil_Model_ModelAbstract
\MUtil_Model_ModelAbstract
getModelCount(array $filter = true
) : integer
array
Filter for the model
integer
Number of items in the modelpreprocessModel()
inherited_from | \Gems\Export\ExportAbstract::preprocessModel() |
---|
preprocessModel()
$loader : \Gems_Loader
$_session : \Zend_Session_Namespace
$batch : \Gems_Task_TaskRunnerBatch
$data : array
$fileExtension : string
'.xlsx'
inherited_from | \Gems\Export\ExportAbstract::fileExtension |
---|
$fileExtension : string
$filename : string
$files : array
$filter : array
$firstRow : array
$model : \MUtil_Model_ModelAbstract
$modelFilter : array
$modelFilterAttributes : array
array('multiOptions', 'formatFunction', 'dateFormat', 'storageFormat', 'itemDisplay')
$modelId : integer
$rowsPerBatch : integer
500
$tempFilename : string