|
| load ($entity) |
|
| elementInfo () |
|
| query ($query, $condition) |
|
| queryOrder ($query, $order) |
|
| getValueList ($options=[], $keyword=NULL) |
|
| instanceSettingsForm () |
|
| __construct ($field, $instance) |
|
| getFieldName () |
|
| getField () |
|
| getInstance () |
|
| getFieldTerm () |
|
| getFieldTermID () |
|
| webServicesData () |
|
| viewsData ($view_base_id) |
|
| validate ($entity_type, $entity, $langcode, $items, &$errors) |
|
| settingsForm ($has_data) |
|
| settingsFormValidate ($form, &$form_state) |
|
| settingsTheme ($element) |
|
| instanceSettingsFormValidate ($form, &$form_state) |
|
| createInstance () |
|
|
static | $default_label = 'Protocol' |
|
static | $default_description = 'The protocol followed to generate this resource.' |
|
static | $default_widget = 'sep__protocol_widget' |
|
static | $default_formatter = 'sep__protocol_formatter' |
|
static | $module = 'tripal_chado' |
|
static | $default_settings |
|
static | $default_instance_settings |
|
static | $no_ui = FALSE |
|
static | $no_data = FALSE |
|
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 |
|
|
static | info () |
|
| 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) |
|
| $field |
|
| $instance |
|
| $term |
|
◆ elementInfo()
sep__protocol::elementInfo |
( |
| ) |
|
◆ load()
sep__protocol::load |
( |
|
$entity | ) |
|
Loads the field values from the underlying data store.
- Parameters
-
- Returns
- An array of the following format: $entity->{$field_name}['und'][0]['value'] = $value; where:
- $entity is the entity object to which this field is attached.
- $field_name is the name of this field
- 'und' is the language code (in this case 'und' == undefined)
- 0 is the cardinality. Increment by 1 when more than one item is available.
- 'value' is the key indicating the value of this field. It should always be set. The value of the 'value' key will be the contents used for web services and for downloadable content. The value should be of the follow format types: 1) A single value (text, numeric, etc.) 2) An array of key value pair. 3) If multiple entries then cardinality should incremented and format types 1 and 2 should be used for each item. The array may contain as many other keys at the same level as 'value' but those keys are for internal field use and are not considered the value of the field.
Reimplemented from TripalField.
◆ query()
sep__protocol::query |
( |
|
$query, |
|
|
|
$condition |
|
) |
| |
Provide query support. We only make use of the name and type.
- Parameters
-
Reimplemented from ChadoField.
◆ queryOrder()
sep__protocol::queryOrder |
( |
|
$query, |
|
|
|
$order |
|
) |
| |
◆ $default_instance_settings
sep__protocol::$default_instance_settings |
|
static |
Initial value:= [
'term_vocabulary' => 'sep',
'term_name' => 'protocol',
'term_accession' => '00101',
'term_fixed' => FALSE,
'auto_attach' => FALSE,
]
◆ $default_settings
sep__protocol::$default_settings |
|
static |
Initial value:= [
'storage' => 'field_chado_storage',
'searchable_keys' => [],
]
The documentation for this class was generated from the following file:
- tripal_chado/includes/TripalFields/sep__protocol/sep__protocol.inc