Tripal
Functions
tripal.importer.api.inc File Reference

Functions

 hook_handle_uploaded_file ($file, $type)
 
 hook_importer_start ($importer)
 
 hook_importer_finish ($importer)
 
 tripal_get_importers ()
 
 tripal_load_include_importer_class ($class)
 
 tripal_run_importer ($import_id, TripalJob $job=NULL)
 
 tripal_run_importer_run ($loader, $job)
 
 tripal_run_importer_post_run ($loader, $job)
 

Detailed Description

Provides an application programming interface (API) for working with data file importers using the TripalImporter class.

Function Documentation

◆ hook_importer_finish()

hook_importer_finish (   $importer)

Implements hook_importer_finish().

This hook is executed once a TripalImporter has completed but it's run and post run activities. This allows modules to implement specific actions once loaders are completed.

Parameters
$importerThe instance of the TripalImporter class that just completed its run.
$job_idThe job_id

◆ hook_importer_start()

hook_importer_start (   $importer)

Implements hook_importer_finish().

This hook is executed before a TripalImporter has started. This allows modules to implement specific actions prior to execution.

Parameters
$importerThe instance of the TripalImporter class that just completed its run.
$job_idThe job_id