Tripal
Public Member Functions | Static Public Attributes | List of all members
sep__protocol Class Reference
Inheritance diagram for sep__protocol:
Inheritance graph
[legend]
Collaboration diagram for sep__protocol:
Collaboration graph
[legend]

Public Member Functions

 load ($entity)
 
 elementInfo ()
 
 query ($query, $condition)
 
 queryOrder ($query, $order)
 
- Public Member Functions inherited from ChadoField
 getValueList ($options=[], $keyword=NULL)
 
 instanceSettingsForm ()
 
- Public Member Functions inherited from TripalField
 __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 Public Attributes

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 Public Attributes inherited from ChadoField
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 Public Attributes inherited from TripalField
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
 

Additional Inherited Members

- Static Public Member Functions inherited from TripalField
static info ()
 
- Protected Member Functions inherited from ChadoField
 queryJoinOnce ($query, $table, $alias, $condition, $type='INNER')
 
- Protected Member Functions inherited from TripalField
 _addWebServiceElement (&$searchable_keys, &$sortable_keys, $parent_term_name, $parent_term, $element_name, $element_details)
 
 _addViewsDataElement (&$data, $view_base_id, $parent, $element_name, $element_details)
 
- Protected Attributes inherited from TripalField
 $field
 
 $instance
 
 $term
 

Member Function Documentation

◆ elementInfo()

sep__protocol::elementInfo ( )
See also
TripalField::elementInfo()

Reimplemented from TripalField.

◆ load()

sep__protocol::load (   $entity)

Loads the field values from the underlying data store.

Parameters
$entity
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
$query
$condition

Reimplemented from ChadoField.

◆ queryOrder()

sep__protocol::queryOrder (   $query,
  $order 
)
See also
TripalField::queryOrder()

Reimplemented from ChadoField.

Member Data Documentation

◆ $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: