本文整理汇总了PHP中Functions::prepare_taxon_params方法的典型用法代码示例。如果您正苦于以下问题:PHP Functions::prepare_taxon_params方法的具体用法?PHP Functions::prepare_taxon_params怎么用?PHP Functions::prepare_taxon_params使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Functions
的用法示例。
在下文中一共展示了Functions::prepare_taxon_params方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_stri_taxa
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);
}
示例2: get_obis_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);
}
示例3: get_boldsys_taxa
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);
}
示例4: get_discoverlife_taxa
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);
}
示例5: get_tropicos_taxa
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);
}
示例6: get_iabin_taxa
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);
}