Tripal
|
Public Member Functions | |
storageSettingsForm (array &$form, FormStateInterface $form_state, $has_data) | |
storageSettingsFormBaseTableAjaxCallback ($form, &$form_state) | |
storageSettingsFormLinkingMethodAjaxCallback ($form, &$form_state) | |
![]() | |
fieldSettingsForm (array $form, FormStateInterface $form_state) | |
tripalStorageId () | |
tripalSave ($field_item, $field_name, $prop_types, $prop_values, $entity) | |
tripalLoad ($field_item, $field_name, $prop_types, $prop_values, $entity) | |
tripalClear ($field_item, $field_name, $prop_types, $prop_values, $entity) | |
sanitizeKey ($key) | |
tripalValuesTemplate ($field_definition, $default_value=NULL) | |
Static Public Member Functions | |
static | defaultStorageSettings () |
static | storageSettingsFormValidateBaseTable (array $form, FormStateInterface $form_state) |
static | storageSettingsFormValidateLinkingMethod (array $form, FormStateInterface $form_state) |
![]() | |
static | defaultFieldSettings () |
static | fieldSettingsFormValidate (array $form, FormStateInterface $form_state) |
static | propertyDefinitions (FieldStorageDefinitionInterface $field_definition) |
static | schema (FieldStorageDefinitionInterface $field_definition) |
![]() | |
static | tripalTypes ($field_definition) |
Protected Member Functions | |
getBaseTables ($linked_table, $has_linker_table=FALSE) | |
getTableColumns ($table_name='', $column_types=[]) | |
getLinkerTables ($linked_table, $base_table, $delimiter=" \u{2192} ") | |
![]() | |
buildVocabularyTermTable (array &$elements, \Drupal\tripal\TripalVocabTerms\TripalTerm $term, \Drupal\tripal\TripalVocabTerms\TripalIdSpaceBase $idSpace, \Drupal\tripal\TripalVocabTerms\TripalVocabularyBase $vocabulary) | |
Static Protected Attributes | |
static | $table_column_delimiter = " \u{2192} " |
Defines the Tripal field item base class.
|
static |
{{}}
Reimplemented from Drupal\tripal\TripalField\TripalFieldItemBase.
Reimplemented in Drupal\tripal_chado\Plugin\Field\FieldType\ChadoUnitTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoTextTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoSynonymTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoStudyTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoStringTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoStockTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoSourceDataTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoSequenceTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoSequenceLengthTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoSequenceChecksumTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoPubTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoProtocolTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoProjectTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoOrganismTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoLinkerPropertyTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoIntegerTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoFeatureTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoFeatureMapTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoDbxrefTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoContactTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoBooleanTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoBiomaterialTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoAssayTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoArrayDesignTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoAnalysisTypeDefault, and Drupal\tripal_chado\Plugin\Field\FieldType\ChadoAdditionalTypeTypeDefault.
|
protected |
Return a list of candidate base tables. We only want to present valid tables to the user, which are those with an appropriate foreign key.
string | $linked_table | The Chado table being linked to via a foreign key. |
bool | $has_linker_table | When set to false (default), base tables are only those tables with a foreign key to $linked_table. When set to true, also include tables based on two foreign keys in linker tables, one to the specified $linked_table, and a second to a different table. |
|
protected |
Return a list of candidate linking connections given a base table and a linked table. These can either be a column in the base table, or a connection through a linking table that connects the base table to the linked table. In some cases there may be more than one way to link the two tables, so the list generated here can be presented to the site administrator to select the desired linking method.
string | $base_table | The Chado table being used for the current entity (subject). |
string | $linked_table | The Chado table being linked to (object). |
string | $delimiter | The displayed delimiter between the table and column in the form select. This defaults to a right arrow. |
|
protected |
Return a list of column names for the indicated table.
string | $table_name | The Chado table of interest. |
array | $column_types | If specified, limit to specified column types, e.g. "character varying", "text", "bigint", etc. |
Drupal\tripal_chado\TripalField\ChadoFieldItemBase::storageSettingsForm | ( | array & | $form, |
FormStateInterface | $form_state, | ||
$has_data | |||
) |
{{}}
Reimplemented from Drupal\tripal\TripalField\TripalFieldItemBase.
Reimplemented in Drupal\tripal_chado\Plugin\Field\FieldType\ChadoSynonymTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoStringTypeDefault, Drupal\tripal_chado\Plugin\Field\FieldType\ChadoLinkerPropertyTypeDefault, and Drupal\tripal_chado\Plugin\Field\FieldType\ChadoAdditionalTypeTypeDefault.
Drupal\tripal_chado\TripalField\ChadoFieldItemBase::storageSettingsFormBaseTableAjaxCallback | ( | $form, | |
& | $form_state | ||
) |
Ajax callback to update the base column select. The select can't be populated until we know the base table.
array | $form | The form array. |
\Drupal\Core\Form\FormStateInterface | $form_state | The form state object. |
Drupal\tripal_chado\TripalField\ChadoFieldItemBase::storageSettingsFormLinkingMethodAjaxCallback | ( | $form, | |
& | $form_state | ||
) |
Ajax callback to update the linking method select. The select can't be populated until we know the base table.
array | $form | The form array. |
\Drupal\Core\Form\FormStateInterface | $form_state | The form state object. |
|
static |
Form element validation handler for base table
array | $form | The form where the settings form is being included in. |
\Drupal\Core\Form\FormStateInterface | $form_state | The form state of the (entire) configuration form. |
|
static |
Form element validation handler for linking method (table + column)
array | $form | The form where the settings form is being included in. |
\Drupal\Core\Form\FormStateInterface | $form_state | The form state of the (entire) configuration form. |