package Gems
subpackage Task\Tracker
copyright Copyright (c) 2015 Erasmus MC
license New BSD License
since Class available since version 1.7.2 Jan 18, 2016 7:59:10 PM
inherited_from \Gems\Task\Tracker\Export\TrackExportAbstract

 Methods

Should handle execution of the task, taking as much (optional) parameters as needed

execute($trackId = null, $surveyId = null

The parameters should be optional and failing to provide them should be handled by the task

Parameters

$trackId

$surveyId

Sets the batch this task belongs to

setBatch(\MUtil_Task_TaskBatch $batch) : \MUtil_Task_TaskInterface
Inherited

This method will be called from the \Gems_Task_TaskRunnerBatch upon execution of the task. It allows the task to communicate with the batch queue.

Parameters

$batch

\MUtil_Task_TaskBatch

Returns

\MUtil_Task_TaskInterface(continuation pattern)

Write the array to the output to file

exportFieldData(array $data) 
Inherited

Parameters

$data

array

Write the array keys to the output

exportFieldHeaders(array $data) 
Inherited

Parameters

$data

array

With headers as the keys

Flush the output

exportFlush() 
Inherited

Write the export type to the output

exportTypeHeader($header, $prependNewline = true
Inherited

Parameters

$header

$prependNewline

Translate a field code to the field order number

translateFieldCode(\Gems\Tracker\Engine\FieldsDefinition $fields, string $fieldId) : string
Inherited

Parameters

$fields

\Gems\Tracker\Engine\FieldsDefinition

$fieldId

string

Returns

string{order} or original value

 Properties

 

$db

$db : \Zend_Db_Adapter_Abstract

Default

 

$loader

$loader : \Gems_Loader

Default

 

resource

$_file : \Gems\Task\Tracker\Export\file

Default