public function TripalField::load
3.x TripalField.inc | public TripalField::load($entity) |
Loads the field values from the underlying data store.
Parameters
$entity:
Return value
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.
1 call to TripalField::load()
- sep__protocol::load in tripal_chado/
includes/ TripalFields/ sep__protocol/ sep__protocol.inc - Loads the field values from the underlying data store.
30 methods override TripalField::load()
- chado_linker__contact::load in tripal_chado/
includes/ TripalFields/ chado_linker__contact/ chado_linker__contact.inc - chado_linker__prop::load in tripal_chado/
includes/ TripalFields/ chado_linker__prop/ chado_linker__prop.inc - content_type::load in tripal/
includes/ TripalFields/ content_type/ content_type.inc - data__accession::load in tripal_chado/
includes/ TripalFields/ data__accession/ data__accession.inc - data__protein_sequence::load in tripal_chado/
includes/ TripalFields/ data__protein_sequence/ data__protein_sequence.inc
File
- tripal/
includes/ TripalFields/ TripalField.inc, line 507
Class
Code
public function load($entity) {
}