package Gems
subpackage Task\Tracker
copyright Copyright (c) 2015 Erasmus MC
license New BSD License
since Class available since version 1.7.2 Jan 14, 2016 2:17:09 PM

 Methods

Sets the batch this task belongs to

setBatch(\MUtil_Task_TaskBatch $batch) : \MUtil_Task_TaskInterface

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) 

Parameters

$data

array

Write the array keys to the output

exportFieldHeaders(array $data) 

Parameters

$data

array

With headers as the keys

Flush the output

exportFlush() 

Write the export type to the output

exportTypeHeader($header, $prependNewline = true

Parameters

$header

$prependNewline

Translate a field code to the field order number

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

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