Open Data Catalog v2.0.0
Drupal\dkan_datastore\Service\Import Class Reference

Public Member Functions

 __construct (Resource $resource, JobStoreFactory $jobStoreFactory, DatabaseTableFactory $databaseTableFactory)
 
 import ()
 
 getResult ()
 
 getImporter ()
 
 getStorage ()
 

Public Attributes

const DEFAULT_TIMELIMIT = 50
 

Detailed Description

Class Import.

Definition at line 16 of file Import.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\dkan_datastore\Service\Import::__construct ( Resource  $resource,
JobStoreFactory  $jobStoreFactory,
DatabaseTableFactory  $databaseTableFactory 
)

Constructor.

Definition at line 26 of file Import.php.

Member Function Documentation

◆ getImporter()

Drupal\dkan_datastore\Service\Import::getImporter ( )

Build an Importer.

Returns
\Dkan\Datastore\Importer Importer.
Exceptions

Definition at line 57 of file Import.php.

◆ getResult()

Drupal\dkan_datastore\Service\Import::getResult ( )

Get result.

Definition at line 43 of file Import.php.

◆ getStorage()

Drupal\dkan_datastore\Service\Import::getStorage ( )

Build a database table storage object.

Returns
\Drupal\dkan_datastore\Storage\DatabaseTable DatabaseTable storage object.

Definition at line 102 of file Import.php.

◆ import()

Drupal\dkan_datastore\Service\Import::import ( )

Import.

Definition at line 35 of file Import.php.

Member Data Documentation

◆ DEFAULT_TIMELIMIT

const Drupal\dkan_datastore\Service\Import::DEFAULT_TIMELIMIT = 50

Definition at line 17 of file Import.php.