|
| elementInfo () |
|
| __construct ($field, $instance) |
|
| load ($entity) |
|
| query ($query, $condition) |
|
| instanceSettingsForm () |
|
| instanceSettingsFormValidate ($form, &$form_state) |
|
| validate ($entity_type, $entity, $langcode, $items, &$errors) |
|
| validateItem ($item, $chado_record_id=NULL) |
|
| queryOrder ($query, $order) |
|
| getRelTableSchema () |
|
| getBaseTableSchema () |
|
| getSubjectIdColumn () |
|
| getObjectIdColumn () |
|
| getBaseNameColumns () |
|
| getBaseTypeColumn () |
|
| getValueList ($options=[], $keyword=NULL) |
|
| getFieldName () |
|
| getField () |
|
| getInstance () |
|
| getFieldTerm () |
|
| getFieldTermID () |
|
| webServicesData () |
|
| viewsData ($view_base_id) |
|
| settingsForm ($has_data) |
|
| settingsFormValidate ($form, &$form_state) |
|
| settingsTheme ($element) |
|
| createInstance () |
|
|
static | $default_label = 'Relationship' |
|
static | $description = 'Relationships between records.' |
|
static | $default_instance_settings |
|
static | $default_widget = 'sbo__relationship_widget' |
|
static | $default_formatter = 'sbo__relationship_formatter' |
|
static | $default_label = 'Chado Field' |
|
static | $default_description = 'The generic base class for all Chado fields. Replace this text as appropriate for the child implementation.' |
|
static | $default_settings |
|
static | $default_instance_settings |
|
static | $download_formatters |
|
static | $module = 'tripal_chado' |
|
static | $default_label = 'Tripal Field' |
|
static | $default_description = 'The generic base class for all Tripal fields. Replace this text as appropriate for the child implementation.' |
|
static | $default_settings |
|
static | $default_instance_settings |
|
static | $download_formatters |
|
static | $default_widget = '' |
|
static | $default_formatter = '' |
|
static | $module = 'tripal' |
|
static | $no_ui = TRUE |
|
static | $no_data = FALSE |
|
|
| $field |
|
| $instance |
|
| $base_name_columns |
|
| $base_type_column |
|
| $schema |
|
| $base_schema |
|
| $subject_id_column |
|
| $object_id_column |
|
| $field |
|
| $instance |
|
| $term |
|
|
| queryJoinOnce ($query, $table, $alias, $condition, $type='INNER') |
|
| _addWebServiceElement (&$searchable_keys, &$sortable_keys, $parent_term_name, $parent_term, $element_name, $element_details) |
|
| _addViewsDataElement (&$data, $view_base_id, $parent, $element_name, $element_details) |
|
◆ __construct()
sbo__relationship::__construct |
( |
|
$field, |
|
|
|
$instance |
|
) |
| |
◆ elementInfo()
sbo__relationship::elementInfo |
( |
| ) |
|
- See also
- TripalField::elements()
Reimplemented from TripalField.
◆ get_rel_verb()
static sbo__relationship::get_rel_verb |
( |
|
$rel_type | ) |
|
|
static |
A helper function to define English verbs for relationship types.
- Parameters
-
$rel_type | The vocabulary term name for the relationship. |
- Returns
- The verb to use when creating a sentence of the relationship.
◆ getBaseNameColumns()
sbo__relationship::getBaseNameColumns |
( |
| ) |
|
Retrieve the base name columns.
◆ getBaseTypeColumn()
sbo__relationship::getBaseTypeColumn |
( |
| ) |
|
Retrieve the base type column.
◆ getRelTableSchema()
sbo__relationship::getRelTableSchema |
( |
| ) |
|
◆ getSubjectIdColumn()
sbo__relationship::getSubjectIdColumn |
( |
| ) |
|
Retrieve the subject/object key columns.
◆ instanceSettingsForm()
sbo__relationship::instanceSettingsForm |
( |
| ) |
|
◆ instanceSettingsFormValidate()
sbo__relationship::instanceSettingsFormValidate |
( |
|
$form, |
|
|
& |
$form_state |
|
) |
| |
- Parameters
-
unknown | $form | |
unknown | $form_state | |
Reimplemented from TripalField.
◆ load()
sbo__relationship::load |
( |
|
$entity | ) |
|
◆ query()
sbo__relationship::query |
( |
|
$query, |
|
|
|
$condition |
|
) |
| |
◆ queryOrder()
sbo__relationship::queryOrder |
( |
|
$query, |
|
|
|
$order |
|
) |
| |
◆ validate()
sbo__relationship::validate |
( |
|
$entity_type, |
|
|
|
$entity, |
|
|
|
$langcode, |
|
|
|
$items, |
|
|
& |
$errors |
|
) |
| |
◆ validateItem()
sbo__relationship::validateItem |
( |
|
$item, |
|
|
|
$chado_record_id = NULL |
|
) |
| |
Validate a Single relationship.
- Parameters
-
- Returns
- An array of errors where each has a:
- error: this is an error code which is the name of the field.
- message: A message to show the user describing the problem.
◆ $default_instance_settings
sbo__relationship::$default_instance_settings |
|
static |
Initial value:= [
'term_vocabulary' => 'SBO',
'term_name' => 'Relationship',
'term_accession' => '0000374',
'term_fixed' => FALSE,
'auto_attach' => FALSE,
'relationships' => [
'option1_vocabs' => '',
'option2_vocab' => '',
'option2_parent' => '',
'relationship_types' => '',
],
'items_per_page' => 10,
]
The documentation for this class was generated from the following file:
- tripal_chado/includes/TripalFields/sbo__relationship/sbo__relationship.inc