Resource
in package
Table of Contents
Constants
- DWNLD_CHUNK = 10485760
Properties
Methods
- __construct() : mixed
- cacheHandler() : ResponseCacheItem
- getOutput() : ResponseCacheItem
- downloadResource() : string
- getLocalFilePath() : string
Constants
DWNLD_CHUNK
public
mixed
DWNLD_CHUNK
= 10485760
Properties
$config
private
object
$config
$log
private
LoggerInterface|null
$log
$meta
private
DatasetNodeInterface
$meta
$schema
private
Schema
$schema
Methods
__construct()
public
__construct(RepoResourceInterface $res, object $config[, LoggerInterface|null $log = null ]) : mixed
Parameters
- $res : RepoResourceInterface
- $config : object
- $log : LoggerInterface|null = null
cacheHandler()
public
static cacheHandler(RepoResourceInterface $res, array<string|int, mixed> $param, object $config[, LoggerInterface|null $log = null ]) : ResponseCacheItem
Parameters
- $res : RepoResourceInterface
- $param : array<string|int, mixed>
- $config : object
- $log : LoggerInterface|null = null
Return values
ResponseCacheItemgetOutput()
public
getOutput() : ResponseCacheItem
Return values
ResponseCacheItemdownloadResource()
private
downloadResource(string $resUrl) : string
Parameters
- $resUrl : string
Return values
stringgetLocalFilePath()
private
getLocalFilePath(string $resUrl, object $nmspCfg) : string
Parameters
- $resUrl : string
- $nmspCfg : object