function falo_gbif_report() { require_library('connectors/IrmngAPI'); $func = new IrmngAPI(); $irmng_families = $func->get_irmng_families(); $falo_families = self::get_families_xlsx(); $names_in_falo_but_not_in_irmng = array_diff($falo_families, $irmng_families); $names_in_irmng_but_not_in_falo = array_diff($irmng_families, $falo_families); echo "\n falo_families:" . count($falo_families); echo "\n names_in_falo_but_not_in_irmng:" . count($names_in_falo_but_not_in_irmng); echo "\n irmng_families:" . count($irmng_families); echo "\n names_in_irmng_but_not_in_falo:" . count($names_in_irmng_but_not_in_falo); $names_in_falo_but_not_in_irmng = array_values($names_in_falo_but_not_in_irmng); $names_in_irmng_but_not_in_falo = array_values($names_in_irmng_but_not_in_falo); self::save_as_tab_delimited($names_in_falo_but_not_in_irmng, $this->names_in_falo_but_not_in_irmng); self::save_as_tab_delimited($names_in_irmng_but_not_in_falo, $this->names_in_irmng_but_not_in_falo); /* falo_families:9672 names_in_falo_but_not_in_irmng:510 irmng_families:19998 names_in_irmng_but_not_in_falo:10836 */ // recursive_rmdir($this->TEMP_DIR); }
<?php namespace php_active_record; /* IRMNG data execution time: 2.23 hours; 2,032,569 records to process excl '' status fixed parent-child as of: Aug28 Aug31 Sep7 taxon 1,925,615 1,933,060 1,878,575 1,425,833 occurrence 3,938,768 3,938,768 3,938,768 3,938,768 measurement 3,938,768 3,938,768 3,938,768 3,938,768 */ include_once dirname(__FILE__) . "/../../config/environment.php"; require_library('connectors/IrmngAPI'); $timestart = time_elapsed(); $resource_id = 741; $func = new IrmngAPI($resource_id); // $func->get_taxa_without_status_but_with_eol_page(); //utility $func->get_all_taxa(); Functions::finalize_dwca_resource($resource_id); $elapsed_time_sec = time_elapsed() - $timestart; echo "\n\n"; echo "\n elapsed time = " . $elapsed_time_sec . " seconds"; echo "\n elapsed time = " . $elapsed_time_sec / 60 . " minutes"; echo "\n elapsed time = " . $elapsed_time_sec / 60 / 60 . " hours"; echo "\n Done processing.\n";