Class that checks whether changing the field type is allowed.
| subpackage | Tracker_Model |
|---|---|
| subpackage | FieldTypeChangeDependency |
| copyright | Copyright (c) 2015 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.6.5 18-mrt-2015 13:07:12 |
| package | Gems |
__construct(string $dependsOn)
stringthe model field to depend on
afterRegistry() : void
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.
arrayThe current data this object is dependent on
booleanTrue when the item is a new record not yet saved
arrayname => array(setting => value)getSql(string $subId) : string | boolean
stringThe current sub type of field
stringbooleanAn sql statement or false$_effecteds : array
array('gtf_field_type' => array('elementClass', 'onchange'))Can be overriden in sub class
$db : \Zend_Db_Adapter_Abstract
$request : \Zend_Controller_Request_Abstract