123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- class data__sequence_checksum extends ChadoField {
-
-
-
-
-
-
-
-
- public static $default_label = 'Sequence checksum';
-
- public static $description = 'A field for generating MD5 checksum for a sequence.';
-
-
-
-
-
-
-
- public static $default_instance_settings = [
-
- 'term_vocabulary' => 'data',
-
- 'term_name' => 'sequence_checksum',
-
- 'term_accession' => '2190',
-
-
-
- 'term_fixed' => FALSE,
- ];
-
- public static $default_widget = 'data__sequence_checksum_widget';
-
- public static $default_formatter = 'data__sequence_checksum_formatter';
-
-
-
-
-
- protected $field;
-
-
-
- protected $instance;
-
- public function elementInfo() {
- $field_term = $this->getFieldTermID();
- return [
- $field_term => [
- 'operations' => [],
- 'sortable' => FALSE,
- 'searchable' => FALSE,
- 'type' => 'xs:string',
- 'readonly' => TRUE,
- 'required' => FALSE,
- ],
- ];
- }
- }
|