package Gems
subpackage Tracker_Model
copyright Copyright (c) 2014 Erasmus MC
license New BSD License
since Class available since version 1.6.3 13-feb-2014 16:33:25

 Methods

__construct()

__construct(\Gems_Tracker_Survey $survey, \Gems_Tracker_Source_SourceInterface $source) 

Parameters

$survey

$source

The number of item rows changed since the last save or delete

getChanged() : integer

Returns

integer

The transform function performs the actual transformation of the data and is called after the loading of the data in the source model.

transformLoad(\MUtil_Model_ModelAbstract $model, array $data, boolean $new = false, boolean $isPostData = false) : array

Parameters

$model

\MUtil_Model_ModelAbstract

The parent model

$data

array

Nested array

$new

boolean

True when loading a new item

$isPostData

boolean

With post data, unselected multiOptions values are not set so should be added

Returns

arrayNested array containing (optionally) transformed data

This transform function performs the actual save (if any) of the transformer data and is called after the saving of the data in the source model.

transformRowAfterSave(\MUtil_Model_ModelAbstract $model, array $row) : array

Parameters

$model

\MUtil_Model_ModelAbstract

The parent model

$row

array

Array containing row

Returns

arrayRow array containing (optionally) transformed data

 Properties

 

$changed

$changed 

Default

0
 

$source

$source : \Gems_Tracker_Source_SourceInterface

Default

 

$survey

$survey : \Gems_Tracker_Survey

Default

 

The field in the suppied data array that holds the Token ID

$tokenField : string

Default

'gto_id_token'