1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- class ChadoField extends TripalField {
- // The default lable for this field.
- public static $default_label = 'Chado Field';
- // The default description for this field.
- public static $default_description = 'The generic base class for all Chado fields. ' .
- 'Replace this text as appropriate for the child implementation.';
- // A list of global settings. These can be accessed witihn the
- // globalSettingsForm. When the globalSettingsForm is submitted then
- // Drupal will automatically change these settings for all fields.
- // Once instances exist for a field type then these settings cannot be
- // changed.
- public static $default_settings = array(
- 'storage' => 'field_chado_storage',
- );
- // Provide a list of instance specific settings. These can be access within
- // the instanceSettingsForm. When the instanceSettingsForm is submitted
- // then Drupal with automatically change these settings for the instnace.
- // It is recommended to put settings at the instance level whenever possible.
- // If you override this variable in a child class be sure to replicate the
- // term_name, term_vocab, term_accession and term_fixed keys as these are
- // required for all TripalFields.
- public static $default_instance_settings = array(
- // The short name for the vocabulary (e.g. shcema, SO, GO, PATO, etc.).
- 'term_vocabulary' => 'schema',
- // The name of the term.
- 'term_name' => 'Thing',
- // The unique ID (i.e. accession) of the term.
- 'term_accession' => 'Thing',
- // Set to TRUE if the site admin is allowed to change the term
- // type. This will create form elements when editing the field instance
- // to allow the site admin to change the term settings above.
- 'term_fixed' => FALSE,
- // The table in Chado that the instance maps to.
- 'chado_table' => '',
- // The primary key column of hte table in Dhado.
- 'chado_column' => '',
- // The base table.
- 'base_table' => '',
- );
- // The module that manages this field.
- public static $module = 'tripal_chado';
- }
|