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

Public Member Functions

 __construct (FileFetcher $fileFetcher, $importer=NULL)
 

Static Public Member Functions

static getItem (FileFetcher $fileFetcher, $importer=NULL)
 

Public Attributes

 $fileFetcher
 
 $importer
 
 $fileFetcherStatus
 
 $fileFetcherPercentDone
 
 $fileFetcherBytes
 
 $fileName
 
 $importerStatus
 
 $importerBytes
 
 $importerPercentDone
 

Detailed Description

Defines and provide a single item for an ImporterList.

Definition at line 12 of file ImporterListItem.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\dkan_datastore\Service\ImporterList\ImporterListItem::__construct ( FileFetcher  $fileFetcher,
  $importer = NULL 
)

Constructor method.

Parameters
\FileFetcher\FileFetcher$fileFetcherFileFetcher job object.
\Dkan\Datastore\Importer | null$importerDatastore importer job object, or NULL if one does not exist.

Definition at line 97 of file ImporterListItem.php.

Member Function Documentation

◆ getItem()

static Drupal\dkan_datastore\Service\ImporterList\ImporterListItem::getItem ( FileFetcher  $fileFetcher,
  $importer = NULL 
)
static

Static function to build a full object with a single call.

Parameters
\FileFetcher\FileFetcher$fileFetcherThe FileFetcher object.
\Dkan\Datastore\Importer | null$importerImporter object.

Definition at line 110 of file ImporterListItem.php.

Member Data Documentation

◆ $fileFetcher

Drupal\dkan_datastore\Service\ImporterList\ImporterListItem::$fileFetcher

Definition at line 19 of file ImporterListItem.php.

◆ $fileFetcherBytes

Drupal\dkan_datastore\Service\ImporterList\ImporterListItem::$fileFetcherBytes

Definition at line 51 of file ImporterListItem.php.

◆ $fileFetcherPercentDone

Drupal\dkan_datastore\Service\ImporterList\ImporterListItem::$fileFetcherPercentDone

Definition at line 44 of file ImporterListItem.php.

◆ $fileFetcherStatus

Drupal\dkan_datastore\Service\ImporterList\ImporterListItem::$fileFetcherStatus

Definition at line 37 of file ImporterListItem.php.

◆ $fileName

Drupal\dkan_datastore\Service\ImporterList\ImporterListItem::$fileName

Definition at line 58 of file ImporterListItem.php.

◆ $importer

Drupal\dkan_datastore\Service\ImporterList\ImporterListItem::$importer

Definition at line 26 of file ImporterListItem.php.

◆ $importerBytes

Drupal\dkan_datastore\Service\ImporterList\ImporterListItem::$importerBytes

Definition at line 79 of file ImporterListItem.php.

◆ $importerPercentDone

Drupal\dkan_datastore\Service\ImporterList\ImporterListItem::$importerPercentDone

Definition at line 87 of file ImporterListItem.php.

◆ $importerStatus

Drupal\dkan_datastore\Service\ImporterList\ImporterListItem::$importerStatus

Definition at line 69 of file ImporterListItem.php.