123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- class data__sequence_length extends ChadoField {
-
-
-
-
-
-
-
-
- public static $default_label = 'Sequence length';
-
- public static $description = 'A field for calculating the length of a sequence.';
-
-
-
-
-
-
-
- public static $default_instance_settings = [
-
- 'term_vocabulary' => 'data',
-
- 'term_name' => 'sequence_length',
-
- 'term_accession' => '1249',
-
-
-
- 'term_fixed' => FALSE,
- ];
-
- public static $default_widget = 'data__sequence_length_widget';
-
- public static $default_formatter = 'data__sequence_length_formatter';
-
-
-
-
-
- protected $field;
-
-
-
- protected $instance;
-
- public function elementInfo() {
- $field_term = $this->getFieldTermID();
- return [
- $field_term => [
- 'operations' => ['eq', 'gt', 'lt', 'gte', 'lte'],
- 'sortable' => TRUE,
- 'searchable' => TRUE,
- 'type' => 'xs:integer',
- 'readonly' => TRUE,
- ],
- ];
- }
- }
|