CronController
extends BaseCronController
in package
Class BaseCronController
Table of Contents
Properties
- $em : EntityManager
- $l : Logger
- $trans : Translator|NativeArray
- $handler : HandlerComponent
- Cronjob handler.
- $modules : array<string|int, Module>
- Api modules.
- $start : float
- Cronjob start in microtime.
- $apiOrderUploadBatchRepository : ApiOrderUploadBatchRepository
- $filesAlreadyInGCS : mixed
- $filesNotExistingLocally : mixed
- $googleCloudStorageComponent : GoogleCloudStorageComponent
- $uploadedFiles : mixed
Methods
- __destruct() : mixed
- Finish cronjob and log the report.
- execPrep() : mixed
- initialize() : mixed
- Disable view render and start cronjob.
- sumhelp() : mixed
- uploadAllExistingFilesAction() : mixed
- getStoragePath() : string
- checkIfFileIsAlreadyInGCS() : mixed
- saveToCloudIfNotExists() : mixed
Properties
$em read-only
public
EntityManager
$em
$l
public
Logger
$l
$trans read-only
public
Translator|NativeArray
$trans
$handler
Cronjob handler.
protected
HandlerComponent
$handler
$modules
Api modules.
protected
array<string|int, Module>
$modules
$start
Cronjob start in microtime.
protected
float
$start
$apiOrderUploadBatchRepository
private
ApiOrderUploadBatchRepository
$apiOrderUploadBatchRepository
$filesAlreadyInGCS
private
mixed
$filesAlreadyInGCS
$filesNotExistingLocally
private
mixed
$filesNotExistingLocally
$googleCloudStorageComponent
private
GoogleCloudStorageComponent
$googleCloudStorageComponent
$uploadedFiles
private
mixed
$uploadedFiles
Methods
__destruct()
Finish cronjob and log the report.
public
__destruct() : mixed
execPrep()
public
execPrep(mixed $s, mixed $b, mixed $t) : mixed
Parameters
- $s : mixed
- $b : mixed
- $t : mixed
initialize()
Disable view render and start cronjob.
public
initialize() : mixed
sumhelp()
public
sumhelp(mixed $h2Body) : mixed
Parameters
- $h2Body : mixed
uploadAllExistingFilesAction()
public
uploadAllExistingFilesAction() : mixed
getStoragePath()
protected
getStoragePath(int $userId) : string
Parameters
- $userId : int
Return values
stringcheckIfFileIsAlreadyInGCS()
private
checkIfFileIsAlreadyInGCS(int $userId, string $fileName) : mixed
Parameters
- $userId : int
- $fileName : string
saveToCloudIfNotExists()
private
saveToCloudIfNotExists(string $localFilePath, string $fileName, int $userId) : mixed
Parameters
- $localFilePath : string
- $fileName : string
- $userId : int