1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?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 = array(
-
- '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 array(
- $field_term => array(
- 'operations' => array('eq', 'gt', 'lt', 'gte', 'lte'),
- 'sortable' => TRUE,
- 'searchable' => TRUE,
- 'type' => 'xs:integer',
- 'readonly' => TRUE,
- ),
- );
- }
- }
|