buildDataFile()
buildDataFile( $dataFileDownloadUrl)
Parameters
| $dataFileDownloadUrl |
buildDataFile( $dataFileDownloadUrl)
| $dataFileDownloadUrl |
loadDataFromFile( $jsonDataFilePath)
| $jsonDataFilePath |
downloadAndLoadDataFileFromUrl( $dataFile, $dataFileManager = null)
Load the DeviceAtlas data file data from a URL.
Schedule a reload if data file is stale. Re-download data file if local data file is corrupted.
| $dataFile | ||
| $dataFileManager |
when there is a problem downloading or loading the data file.
scheduleReloadAndFinishRequest( $dataFile, $dataFileManager)
A secondary register_shutdown_call to make sure the reload method is called as the last one.
| $dataFile | ||
| $dataFileManager |
reload( $dataFile, $dataFileManager, $isScheduled = false)
Downloads a new data file if the existing one is stale.
Loads data file into API.
| $dataFile | ||
| $dataFileManager | ||
| $isScheduled |
checkReloadSchedule( $dataFile, $dataFileManager, $forceReload = false)
| $dataFile | ||
| $dataFileManager | ||
| $forceReload |
callFailureCallback(\Exception $ex, $dataFile)
Call user defined callback if set.
| \Exception | $ex | |
| $dataFile |