| package | Gems |
|---|---|
| subpackage | Tracker_Field |
| copyright | Copyright (c) 2015 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.6.5 4-mrt-2015 11:11:42 |
__construct(integer $trackId, string $key, array $fieldData)
integergems__tracks id for this field
stringThe field key
calculateFieldInfo(array $currentValue, array $fieldData) : mixed
arrayThe current value
arrayThe other values loaded so far
mixedthe new valuecalculateFieldValue(array $currentValue, array $fieldData, array $trackData) : mixed
arrayThe current value
arrayThe other known field values
arrayThe currently available track data (track id may be empty)
mixedthe new valuecalculationStart(array $trackData) : \Gems\Tracker\Field\FieldAbstract
arrayThe currently available track data (track id may be empty)
\Gems\Tracker\Field\FieldAbstractgetCode() : mixed: string
mixedthe new value
/
public function calculateOnSave($currentValue, array $values, array $fieldData, $respTrackId = null);stringThe field codegetDataModelDependsOn() : array
arrayNull or an array of respondent track fieldsgetDataModelDependyChanges(array $context, boolean $new) : array
array(setting1 => $value1, setting2 => $value2, ...),
By using [] array notation in the setting array key you can append to existing values.
Use the setting 'value' to change a value in the original data.
When a 'model' setting is set, the workings cascade.
arrayThe current data this object is dependent on
booleanTrue when the item is a new record not yet saved
array(setting => value)getDataModelEffecteds() : array
arrayNull or an array of model settings that change for this fieldgetDataModelSettings() : array
arrayOf settings to add to a model using these fieldsgetFieldId() : integer
integerThe track field idgetFieldKey() : string
stringThe track field key as used by the union modelgetFieldSub() : string
stringThe track field sub (model) valuegetFieldType() : string
stringThe field typegetLabel() : string
stringThe field labelgetOrder() : integer
integerThe field orderhasDataModelDependencies() : boolean
booleanWhen this field has dependenciesisLabelInTrackInfo() : boolean
booleanonFieldDataLoad(array $currentValue, array $fieldData) : mixed
arrayThe current value
arrayThe other values loaded so far
mixedthe new valueonFieldDataSave(array $currentValue, array $fieldData) : mixed
arrayThe current value
arrayThe other values loaded so far
mixedthe new valuetoTrackInfo() : boolean
boolean