protected property TripalFieldDownloader::$fields2terms
An array that associates a field ID with a term.
The first-level key is the site ID. For the local site this will be the word 'local' for all others it will be the numeric id. The second level key is the bundle bundle name. For local bundles this will always be bio_data_xxxx. Third, are two subkeys: by_field and by_accession. To lookup a field's term you use the 'by_field' subkey with the field_id as the next level. To lookup the field ID for a term use the 'by_accession' subkey with the accession as the next level. Below is an example of the structure of this array.
Array (
[local] => Array(
[bio_data_7] => Array(
[by_field] => Array(
[56] => data:2091,
[57] => OBI:0100026,
[17] => schema:name,
[58] => data:2044,
[34] => data:0842,
[67] => schema:alternateName,
),
[by_accession] => Array (
[data:2091] => 56,
[OBI:0100026] => 57,
[schema:name] => 17,
[data:2044] => 58,
[data:0842] => 34,
[schema:alternateName] => 67,
),
),
),
)
File
- tripal/
includes/ TripalFieldDownloaders/ TripalFieldDownloader.inc, line 99
Class
Code
protected $fields2terms = array();