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)
integer
gems__tracks id for this field
string
The field key
calculateFieldInfo(array $currentValue, array $fieldData) : mixed
array
The current value
array
The other values loaded so far
mixed
the new valuecalculateFieldValue(array $currentValue, array $fieldData, array $trackData) : mixed
array
The current value
array
The other known field values
array
The currently available track data (track id may be empty)
mixed
the new valuecalculationStart(array $trackData) : \Gems\Tracker\Field\FieldAbstract
array
The currently available track data (track id may be empty)
\Gems\Tracker\Field\FieldAbstract
getCode() : mixed: string
mixed
the new value
/
public function calculateOnSave($currentValue, array $values, array $fieldData, $respTrackId = null);string
The field codegetDataModelDependsOn() : array
array
Null 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.
array
The current data this object is dependent on
boolean
True when the item is a new record not yet saved
array
(setting => value)getDataModelEffecteds() : array
array
Null or an array of model settings that change for this fieldgetDataModelSettings() : array
array
Of settings to add to a model using these fieldsgetFieldId() : integer
integer
The track field idgetFieldKey() : string
string
The track field key as used by the union modelgetFieldSub() : string
string
The track field sub (model) valuegetFieldType() : string
string
The field typegetLabel() : string
string
The field labelgetOrder() : integer
integer
The field orderhasDataModelDependencies() : boolean
boolean
When this field has dependenciesisLabelInTrackInfo() : boolean
boolean
onFieldDataLoad(array $currentValue, array $fieldData) : mixed
array
The current value
array
The other values loaded so far
mixed
the new valueonFieldDataSave(array $currentValue, array $fieldData) : mixed
array
The current value
array
The other values loaded so far
mixed
the new valuetoTrackInfo() : boolean
boolean