| 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)
arrayData submitted by export form
arrayModel Id when multiple models are passed
addRow(array $row, \Gems\Export\file $file)
| inherited_from | \Gems\Export\ExportAbstract::addRow() |
|---|
arraya row in the model
\Gems\Export\fileThe already opened file
addRow(array $row, \Gems\Export\file $file)
arraya row in the model
\Gems\Export\fileThe already opened file
addRowWithCount(array $row, $excelObject, $rowNumber)
arraya row in the model
addRows(array $data, array $modelId, string $tempFilename, array $filter)
| inherited_from | \Gems\Export\ExportAbstract::addRows() |
|---|
arrayData submitted by export form
arrayModel Id when multiple models are passed
stringThe temporary filename while the file is being written
arrayFilter (limit) to use
addRows(array $data, array $modelId, string $tempFilename, array $filter)
arrayData submitted by export form
arrayModel Id when multiple models are passed
stringThe temporary filename while the file is being written
arrayFilter (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\Filewith download headersgetDefaultFormValues() : array
| inherited_from | \Gems\Export\ExportAbstract::getDefaultFormValues() |
|---|
arrayDefault values in formgetDefaultFormValues() : array
arrayDefault values in formgetFormElements(\MUtil_Form $form, array $data) : array
| inherited_from | \Gems\Export\ExportAbstract::getFormElements() |
|---|
\MUtil_FormCurrent form to add the form elements
arraycurrent options set in the form
arrayForm elementsgetFormElements(\MUtil_Form $form, array $data) : array
\MUtil_FormCurrent form to add the form elements
arraycurrent options set in the form
arrayForm elementsgetLabeledColumns() : array
arrayArray of columnnamesgetName() : string
| inherited_from | \Gems\Export\ExportAbstract::getName() |
|---|
stringname of the specific exportgetName() : string
stringname of the specific exportsetBatch(\Gems_Task_TaskRunnerBatch $batch)
Use $this->hasBatch to check for existence
\Gems_Task_TaskRunnerBatch
addFile()
addHeader(string $filename)
stringThe temporary filename while the file is being written
addheader(string $filename)
stringThe temporary filename while the file is being written
cleanupName(string $filename) : string
stringProposed filename
stringfiltered 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
arraya row in the model
arrayThe filtered rowgetColumn($x)
getColumnHeaders()
getFiles() : array
arrayFiles arraygetModel() : \MUtil_Model_ModelAbstract
\MUtil_Model_ModelAbstractgetModelCount(array $filter = true) : integer
arrayFilter for the model
integerNumber 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