allow to copy customfields
[tine20] / tine20 / ExampleApplication / Config.php
index e551617..ecbc5ac 100644 (file)
@@ -21,6 +21,8 @@ class ExampleApplication_Config extends Tinebase_Config_Abstract
      * @var string
      */
     const EXAMPLE_STATUS = 'exampleStatus';
+
+    const EXAMPLE_REASON = 'exampleReason';
     
     /**
      * (non-PHPdoc)
@@ -34,8 +36,43 @@ class ExampleApplication_Config extends Tinebase_Config_Abstract
             'description'           => 'Possible status. Please note that additional status might impact other ExampleApplication systems on export or syncronisation.',
             'type'                  => 'keyFieldConfig',
             'options'               => array('recordModel' => 'ExampleApplication_Model_Status'),
-            'clientRegistryInclude' => TRUE,
-            'default'               => 'IN-PROCESS'
+            'clientRegistryInclude' => true,
+            'setByAdminModule'      => true,
+            'setBySetupModule'      => false,
+            'default'               => array(
+                'records' => array(
+                    array('id' => 'COMPLETED',    'value' => 'Completed',   'is_open' => 0, 'icon' => 'images/oxygen/16x16/actions/ok.png',                   'system' => true), //_('Completed')
+                    array('id' => 'CANCELLED',    'value' => 'Cancelled',   'is_open' => 0, 'icon' => 'images/oxygen/16x16/actions/dialog-cancel.png',        'system' => true), //_('Cancelled')
+                    array('id' => 'IN-PROCESS',   'value' => 'In process',  'is_open' => 1, 'icon' => 'images/oxygen/16x16/actions/view-refresh.png',         'system' => true), //_('In process')
+                ),
+                'default' => 'IN-PROCESS'
+            )
+        ),
+
+        self::EXAMPLE_REASON => array(
+            //_('Reasons Available')
+            'label'                 => 'Reasons Available',
+            //_('Possible status reasons.')
+            'description'           => 'Possible status reasons.',
+            'type'                  => 'keyFieldConfig',
+            'options'               => array(
+                'parentField'     => 'status'
+            ),
+            'clientRegistryInclude' => true,
+            'setByAdminModule'      => true,
+            'setBySetupModule'      => false,
+            'default'               => array(
+                'records' => array(
+                    array('id' => 'COMPLETED:CHANGE',           'value' => 'Change'), //_('Change')
+                    array('id' => 'COMPLETED:DOCU',             'value' => 'Documentation'), //_('Documentation')
+                    array('id' => 'CANCELLED:REQCHANGE',        'value' => 'Requirement Changed'), //_('Requirement Changed')
+                    array('id' => 'CANCELLED:NOTPOSSIBLE',      'value' => 'Not Possible'), //_('Not Possible')
+                    array('id' => 'IN-PROCESS:IMPLEMENTATION',  'value' => 'Implementation'), //_('Implementation')
+                    array('id' => 'IN-PROCESS:REVIEW',          'value' => 'Review'), //_('Review')
+                    array('id' => 'IN-PROCESS:INTEGRATION',     'value' => 'Integration'), //_('Integration')
+                ),
+                'default' => array('COMPLETED:CHANGE', 'CANCELLED:REQCHANGE', 'IN-PROCESS:IMPLEMENTATION'),
+            )
         ),
     );