Public Member Functions | |
| __construct (string $uuid, EntityRepository $entityRepository, FileSystem $fileSystem, JobStoreFactory $jobStoreFactory) | |
| get ($useFileFetcher=FALSE, $runFileFetcher=TRUE) | |
| remove () | |
| getResult () | |
| getFileFetcher () | |
Public Attributes | |
| const | DEFAULT_TIMELIMIT = 50 |
Protected Member Functions | |
| getFileFetcherInstance ($filePath, $tmpDirectory) | |
Class Resource.
Definition at line 16 of file Resource.php.
| Drupal\dkan_datastore\Service\Resource::__construct | ( | string | $uuid, |
| EntityRepository | $entityRepository, | ||
| FileSystem | $fileSystem, | ||
| JobStoreFactory | $jobStoreFactory | ||
| ) |
Constructor.
Definition at line 27 of file Resource.php.
| Drupal\dkan_datastore\Service\Resource::get | ( | $useFileFetcher = FALSE, |
|
$runFileFetcher = TRUE |
|||
| ) |
Create a resource object.
| bool | $useFileFetcher | If file fetcher was used, get path from the file fetcher. |
| bool | $runFileFetcher | If file fetcher was used, run it. |
Definition at line 50 of file Resource.php.
| Drupal\dkan_datastore\Service\Resource::getFileFetcher | ( | ) |
Get FileFetcher.
Definition at line 106 of file Resource.php.
|
protected |
| Drupal\dkan_datastore\Service\Resource::getResult | ( | ) |
Get result.
Definition at line 84 of file Resource.php.
| Drupal\dkan_datastore\Service\Resource::remove | ( | ) |
Remove the resource object.
Resource objects are dynamic, so they themselves do not need to be removed. However, to create a resource we use the filefetcher. Filefetcher states are stored, and once fetching is finished a file exists in the file system. We need to clean up both of those things.
Definition at line 72 of file Resource.php.
| const Drupal\dkan_datastore\Service\Resource::DEFAULT_TIMELIMIT = 50 |
Definition at line 17 of file Resource.php.