package Gems
subpackage Tracker_Model
copyright Copyright (c) 2015 Erasmus MC
license New BSD License
since Class available since version 1.6.5 18-mrt-2015 14:00:41

 Methods

__construct()

__construct(integer $trackId) 

Parameters

$trackId

integer

The trackId for this dependency

This formatFunction is needed because the options are not set before the concatenated row

formatValues(string $value) : string

Parameters

$value

string

Returns

string

Returns the changes that must be made in an array consisting of

getChanges(array $context, boolean $new) : array

array( field1 => array(setting1 => $value1, setting2 => $value2, ...), field2 => array(setting3 => $value3, setting4 => $value4, ...),

By using [] array notation in the setting name 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.

Parameters

$context

array

The current data this object is dependent on

$new

boolean

True when the item is a new record not yet saved

Returns

arrayname => array(setting => value)

Get the calculate from options

getOptions(integer $trackId = null) : array

Parameters

$trackId

integer

Returns

array

 Properties

 

Array of name => name of items dependency depends on.

$_dependentOn : array

Default

array('gtf_id_track')

Can be overriden in sub class

 

Array of name => array(setting => setting) of fields with settings changed by this dependency

$_effecteds : array

Default

array('htmlCalc' => array('elementClass', 'label'), 'gtf_calculate_using' => array('description', 'elementClass', 'formatFunction', 'label', 'multiOptions'))

Can be overriden in sub class

 

The current trackId

$_trackId : integer

Default

 

$db

$db : \Zend_Db_Adapter_Abstract

Default