ProcessComponent
extends Injectable
in package
Table of Contents
Properties
- $batchId : mixed
- $manualOrderUploadStorageBucket : mixed
- $path : mixed
- $apiBatch : mixed
- $googleCloudStorageComponent : GoogleCloudStorageComponent
- $nameConverter : ManualOrderUploadHeaderPropertyNameConverter
Methods
- __construct() : mixed
- addFileToJob() : mixed
- getApiBatch() : ApiOrderUploadBatch
- Get the value of apiBatch.
- getBatchId() : mixed
- Get the value of batchId.
- getFile() : mixed
- getFileWithValidation() : mixed
- getGcPath() : mixed
- Get the value of path.
- getPath() : mixed
- Get the value of path.
- getUser() : mixed
- initCopyDatasFromTemporary() : mixed
- setApiBatch() : self
- Set the value of apiBatch.
- setBatchId() : self
- Set the value of batchId.
- setUser() : mixed
- translateFields() : array<string|int, mixed>
- validateFileAndContent() : mixed
- renameFile() : mixed
- validateFileContent() : mixed
Properties
$batchId
public
mixed
$batchId
= null
$manualOrderUploadStorageBucket
public
mixed
$manualOrderUploadStorageBucket
$path
public
mixed
$path
= null
$apiBatch
protected
mixed
$apiBatch
= null
$googleCloudStorageComponent
private
GoogleCloudStorageComponent
$googleCloudStorageComponent
$nameConverter
private
ManualOrderUploadHeaderPropertyNameConverter
$nameConverter
Methods
__construct()
public
__construct() : mixed
addFileToJob()
public
addFileToJob() : mixed
getApiBatch()
Get the value of apiBatch.
public
getApiBatch() : ApiOrderUploadBatch
Return values
ApiOrderUploadBatchgetBatchId()
Get the value of batchId.
public
getBatchId() : mixed
getFile()
public
getFile(mixed $filename) : mixed
Parameters
- $filename : mixed
getFileWithValidation()
public
getFileWithValidation(string $filename[, array<string|int, mixed> $requiredColumns = [] ][, int $notEmptyCellIndex = 0 ]) : mixed
Parameters
- $filename : string
- $requiredColumns : array<string|int, mixed> = []
- $notEmptyCellIndex : int = 0
getGcPath()
Get the value of path.
public
getGcPath() : mixed
getPath()
Get the value of path.
public
getPath() : mixed
getUser()
public
getUser() : mixed
initCopyDatasFromTemporary()
public
initCopyDatasFromTemporary(FileHandlerComponent $file) : mixed
Parameters
- $file : FileHandlerComponent
setApiBatch()
Set the value of apiBatch.
public
setApiBatch(mixed $apiBatch) : self
Parameters
- $apiBatch : mixed
Return values
selfsetBatchId()
Set the value of batchId.
public
setBatchId(mixed $batchId) : self
Parameters
- $batchId : mixed
Return values
selfsetUser()
public
setUser(mixed $user) : mixed
Parameters
- $user : mixed
translateFields()
public
translateFields([array<string|int, mixed> $content = [] ]) : array<string|int, mixed>
Parameters
- $content : array<string|int, mixed> = []
Return values
array<string|int, mixed>validateFileAndContent()
public
validateFileAndContent(mixed $filename) : mixed
Parameters
- $filename : mixed
renameFile()
private
renameFile(FileHandlerComponent $file) : mixed
Parameters
- $file : FileHandlerComponent
validateFileContent()
private
validateFileContent(array<string|int, mixed> $content) : mixed
Parameters
- $content : array<string|int, mixed>