DataFile
in package
Table of Contents
Constants
- MILLISECONDS_IN_A_DAY = 24 * 60 * 60 * 1000
- PATH_SEPARATOR = "/"
Properties
- $dataMetaFile : mixed
- $disableScheduledDownloadAndReload : mixed
- $downloadAndLoadFrequencyDays : mixed
- $downloadAndLoadTaskFailureCallback : mixed
- $downloadReadTimeoutMilliseconds : mixed
- $downloadUrl : mixed
- $fileDirectory : mixed
- $fileExtension : mixed
- $fileName : mixed
- $headerContentMd5 : mixed
- $supportedContentTypes : mixed
- $temporaryFileName : mixed
- $validateMd5 : mixed
Methods
- __construct() : mixed
- Builder() : mixed
- createTemporaryFileName() : mixed
- exists() : mixed
- getDataMetaFile() : mixed
- getDownloadAndLoadFrequencyDays() : mixed
- getDownloadAndLoadFrequencyMilliseconds() : mixed
- getDownloadAndLoadTaskFailureCallback() : mixed
- getDownloadReadTimeoutMilliseconds() : mixed
- getDownloadUrl() : mixed
- getFileDirectory() : mixed
- getFileExtension() : mixed
- getFileName() : mixed
- getFilePath() : mixed
- getHeaderContentMd5() : mixed
- getLockFilePath() : mixed
- getSupportedContentTypes() : mixed
- getTemporaryDownloadFilePath() : mixed
- getTemporaryFileName() : mixed
- getTemporaryFilePath() : mixed
- isContentTypeSupported() : mixed
- isDataFileReloadIsInProgress() : mixed
- isDisableScheduledDownloadAndReload() : mixed
- isStale() : mixed
- isValidateMd5() : mixed
- temporaryFileExists() : mixed
- createFilePath() : mixed
- getExpiryMilliseconds() : mixed
- validate() : mixed
- validateArgumentNotEmptyOrNull() : mixed
- validateIntIsPositive() : mixed
Constants
MILLISECONDS_IN_A_DAY
public
mixed
MILLISECONDS_IN_A_DAY
= 24 * 60 * 60 * 1000
PATH_SEPARATOR
public
mixed
PATH_SEPARATOR
= "/"
Properties
$dataMetaFile
private
mixed
$dataMetaFile
$disableScheduledDownloadAndReload
private
mixed
$disableScheduledDownloadAndReload
$downloadAndLoadFrequencyDays
private
mixed
$downloadAndLoadFrequencyDays
$downloadAndLoadTaskFailureCallback
private
mixed
$downloadAndLoadTaskFailureCallback
$downloadReadTimeoutMilliseconds
private
mixed
$downloadReadTimeoutMilliseconds
$downloadUrl
private
mixed
$downloadUrl
$fileDirectory
private
mixed
$fileDirectory
$fileExtension
private
mixed
$fileExtension
$fileName
private
mixed
$fileName
$headerContentMd5
private
mixed
$headerContentMd5
$supportedContentTypes
private
mixed
$supportedContentTypes
$temporaryFileName
private
mixed
$temporaryFileName
$validateMd5
private
mixed
$validateMd5
Methods
__construct()
public
__construct(DataFileBuilder $builder) : mixed
Parameters
- $builder : DataFileBuilder
Builder()
public
static Builder(mixed $downloadUrl) : mixed
Parameters
- $downloadUrl : mixed
createTemporaryFileName()
public
static createTemporaryFileName() : mixed
exists()
public
exists() : mixed
getDataMetaFile()
public
getDataMetaFile() : mixed
getDownloadAndLoadFrequencyDays()
public
getDownloadAndLoadFrequencyDays() : mixed
getDownloadAndLoadFrequencyMilliseconds()
public
getDownloadAndLoadFrequencyMilliseconds() : mixed
getDownloadAndLoadTaskFailureCallback()
public
getDownloadAndLoadTaskFailureCallback() : mixed
getDownloadReadTimeoutMilliseconds()
public
getDownloadReadTimeoutMilliseconds() : mixed
getDownloadUrl()
public
getDownloadUrl() : mixed
getFileDirectory()
public
getFileDirectory() : mixed
getFileExtension()
public
getFileExtension() : mixed
getFileName()
public
getFileName() : mixed
getFilePath()
public
getFilePath() : mixed
getHeaderContentMd5()
public
getHeaderContentMd5() : mixed
getLockFilePath()
public
getLockFilePath() : mixed
getSupportedContentTypes()
public
getSupportedContentTypes() : mixed
getTemporaryDownloadFilePath()
public
getTemporaryDownloadFilePath() : mixed
getTemporaryFileName()
public
getTemporaryFileName() : mixed
getTemporaryFilePath()
public
getTemporaryFilePath() : mixed
isContentTypeSupported()
public
isContentTypeSupported(mixed $contentType) : mixed
Parameters
- $contentType : mixed
isDataFileReloadIsInProgress()
public
isDataFileReloadIsInProgress() : mixed
isDisableScheduledDownloadAndReload()
public
isDisableScheduledDownloadAndReload() : mixed
isStale()
public
isStale() : mixed
isValidateMd5()
public
isValidateMd5() : mixed
temporaryFileExists()
public
temporaryFileExists() : mixed
createFilePath()
private
createFilePath(mixed $dataFileName) : mixed
Parameters
- $dataFileName : mixed
getExpiryMilliseconds()
private
getExpiryMilliseconds() : mixed
validate()
private
validate() : mixed
validateArgumentNotEmptyOrNull()
private
validateArgumentNotEmptyOrNull(mixed $argumentName, mixed $argumentValue) : mixed
Parameters
- $argumentName : mixed
- $argumentValue : mixed
validateIntIsPositive()
private
validateIntIsPositive(mixed $argumentName, mixed $argumentValue) : mixed
Parameters
- $argumentName : mixed
- $argumentValue : mixed