public static function get_stri_taxa($taxon_record) { $response = self::parse_xml($taxon_record); //this will output the raw (but structured) array $page_taxa = array(); foreach ($response as $rec) { $taxon = Functions::prepare_taxon_params($rec); if ($taxon) { $page_taxa[] = $taxon; } } return array($page_taxa); }
function get_obis_taxa($url, $used_collection_ids) { $response = self::search_collections($url); $page_taxa = array(); foreach ($response as $rec) { if (@$used_collection_ids[$rec["sciname"]]) { continue; } $taxon = Functions::prepare_taxon_params($rec); if ($taxon) { $page_taxa[] = $taxon; } $used_collection_ids[$rec["sciname"]] = true; } return array($page_taxa, $used_collection_ids); }
function get_boldsys_taxa($rec, $used_collection_ids) { $response = $this->parse_xml($rec); //this will output the raw (but structured) array $page_taxa = array(); foreach ($response as $rec) { if (@$used_collection_ids[$rec["sciname"]]) { continue; } $taxon = Functions::prepare_taxon_params($rec); if ($taxon) { $page_taxa[] = $taxon; } @($used_collection_ids[$rec["sciname"]] = true); } return array($page_taxa, $used_collection_ids); }
function get_discoverlife_taxa($taxon, $used_collection_ids) { $response = self::prepare_object($taxon); //this will output the raw (but structured) array $page_taxa = array(); foreach ($response as $rec) { if (@$used_collection_ids[$rec["identifier"]]) { continue; } $taxon = Functions::prepare_taxon_params($rec); if ($taxon) { $page_taxa[] = $taxon; } @($used_collection_ids[$rec["identifier"]] = true); } return array($page_taxa, $used_collection_ids); }
public static function get_tropicos_taxa($taxon_id, $used_collection_ids) { $response = self::parse_xml($taxon_id); //this will output the raw (but structured) array $page_taxa = array(); foreach ($response as $rec) { if (@$used_collection_ids[$rec["source"]]) { continue; } $taxon = Functions::prepare_taxon_params($rec); if ($taxon) { $page_taxa[] = $taxon; } @($used_collection_ids[$rec["source"]] = true); } return array($page_taxa, $used_collection_ids); }
public static function get_iabin_taxa($taxon, $used_collection_ids) { $response = self::parse_xml($taxon); $page_taxa = array(); foreach ($response as $rec) { if (@$used_collection_ids[$rec["identifier"]]) { continue; } $taxon = Functions::prepare_taxon_params($rec); if ($taxon) { $page_taxa[] = $taxon; } @($used_collection_ids[$rec["identifier"]] = true); } return array($page_taxa, $used_collection_ids); }