Documentation

DoneReturnService
in package

FinalYes

Table of Contents

Constants

FILE_UPLOAD_KEY  = 'submit_proof_file'
STORAGE_RELATIVE_PATH_PART  = 'imports' . DS . 'entries' . DS . 'submission_proofs' . DS

Properties

$em  : EntityManager
$request  : Request
$storage  : GoogleCloudStorageComponent
$auth  : AuthComponent
$config  : Config
$dateTime  : mixed
$delayedFilesService  : DelayedFilesService
$entry  : mixed
$entryComponent  : EntryComponent
$entryDownloadService  : EntryDownloadService
$entryFilterService  : EntryFilterService
$entryId  : mixed
$entryReport  : mixed
$entryReportRepository  : EntryReportRepository
$entryReportService  : EntryReportService
$entryRepository  : EntryRepository
$entrySubmissionRepository  : EntrySubmissionRepository
$entrySubmissionService  : EntrySubmissionService
$entryVersionService  : EntryVersionService
$eventsManager  : Manager
$extension  : mixed
$file  : mixed
$filename  : mixed
$isReupload  : mixed
$loggerService  : LoggerService
$response  : Response
$reUploadTimestamp  : mixed
$snapshotService  : SnapshotService
$uploadHandler  : mixed
$uploadTimestamp  : mixed
$version  : mixed

Methods

__construct()  : mixed
DoneReturnService constructor.
attachSubmissionProofToSubmittedReturnByEntryId()  : mixed
cancelReturnOnHoldByEntryId()  : void
cancelReturnOnHoldByEntryIdList()  : BulkActionResponse
cancelReturnPaidByEntryId()  : void
cancelReturnPaidByEntryIdList()  : BulkActionResponse
cancelReturnQualityControlByEntryId()  : bool
cancelReturnQualityControlByEntryIdList()  : BulkActionResponse
doneReturnOnHoldByEntryId()  : void
doneReturnOnHoldByEntryIdList()  : BulkActionResponse
doneReturnPaidByEntryId()  : void
doneReturnPaidByEntryIdList()  : int
doneReturnPaidByFilteredEntries()  : void
doneReturnQualityControlAndCreateVersionAndDownloadByEntryIdList()  : BulkActionResponse
doneReturnQualityControlAndCreateVersionByEntryId()  : bool
doneReturnQualityControlAndCreateVersionByEntryIdList()  : BulkActionResponse
doneReturnSubmittedByEntryId()  : void
doneReturnSubmittedByEntryIdList()  : BulkActionResponse
doneReturnSubmittedByFilteredEntries()  : void
handleUpload()  : mixed
reUploadSubmissionProofByEntryId()  : mixed
toggleReturnOnHoldByEntryId()  : void
deleteLocalFile()  : mixed
getCloudFolderPath()  : string
getCloudFullPath()  : string
getCloudUploadPath()  : string
getEntry()  : Entry|null
getEntryReport()  : EntryReport|EntryPast
getExtension()  : mixed
getFilename()  : mixed
getLocalFilePath()  : string
getStorageRelativePathPart()  : string
getUploadFolderPath()  : string
getUploadHandler()  : FileUpload
saveLocalFile()  : mixed
saveToCloud()  : mixed
validate()  : mixed
arrayMerge()  : array<string|int, mixed>|null
createDelayedFileDeletionForEntrySubmission()  : mixed
createDirectoryIfNeeded()  : mixed
createJobPaymentProofUploaded()  : mixed
getBucket()  : mixed
getCloudFileName()  : string
handleSaveEntrySubmissionFile()  : void

Constants

STORAGE_RELATIVE_PATH_PART

public mixed STORAGE_RELATIVE_PATH_PART = 'imports' . DS . 'entries' . DS . 'submission_proofs' . DS

Properties

Methods

__construct()

DoneReturnService constructor.

public __construct(EntryReportRepository $entryReportRepository, EntryDownloadService $entryDownloadService, EntryVersionService $entryVersionService, EntryReportService $entryReportService, EntryFilterService $entryFilterService, EntryRepository $entryRepository, Manager $eventsManager, AuthComponent $auth, EntryComponent $entryComponent, Config $config, LoggerService $loggerService, SnapshotService $snapshotService, Response $response, GoogleCloudStorageComponent $storage, EntityManager $em, Request $request, DelayedFilesService $delayedFilesService, EntrySubmissionRepository $entrySubmissionRepository, EntrySubmissionService $entrySubmissionService) : mixed
Parameters
$entryReportRepository : EntryReportRepository
$entryDownloadService : EntryDownloadService
$entryVersionService : EntryVersionService
$entryReportService : EntryReportService
$entryFilterService : EntryFilterService
$entryRepository : EntryRepository
$eventsManager : Manager
$auth : AuthComponent
$entryComponent : EntryComponent
$config : Config
$loggerService : LoggerService
$snapshotService : SnapshotService
$response : Response
$storage : GoogleCloudStorageComponent
$em : EntityManager
$request : Request
$delayedFilesService : DelayedFilesService
$entrySubmissionRepository : EntrySubmissionRepository
$entrySubmissionService : EntrySubmissionService

cancelReturnOnHoldByEntryIdList()

public cancelReturnOnHoldByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
$entryIdList : array<string|int, mixed> = null
Tags
throws
Exception
Return values
BulkActionResponse

cancelReturnQualityControlByEntryIdList()

public cancelReturnQualityControlByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
$entryIdList : array<string|int, mixed> = null
Tags
throws
Exception
Return values
BulkActionResponse

doneReturnPaidByEntryIdList()

public doneReturnPaidByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : int
Parameters
$entryIdList : array<string|int, mixed> = null
Tags
throws
Exception
Return values
int

doneReturnPaidByFilteredEntries()

public doneReturnPaidByFilteredEntries() : void
Tags
throws
DataException
throws
OptimisticLockException
throws
Exception

doneReturnQualityControlAndCreateVersionAndDownloadByEntryIdList()

public doneReturnQualityControlAndCreateVersionAndDownloadByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
$entryIdList : array<string|int, mixed> = null
Tags
throws
Exception
Return values
BulkActionResponse

doneReturnQualityControlAndCreateVersionByEntryIdList()

public doneReturnQualityControlAndCreateVersionByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
$entryIdList : array<string|int, mixed> = null
Tags
throws
Exception
Return values
BulkActionResponse

doneReturnSubmittedByEntryIdList()

public doneReturnSubmittedByEntryIdList([array<string|int, mixed> $entryIdList = null ]) : BulkActionResponse
Parameters
$entryIdList : array<string|int, mixed> = null
Tags
throws
Exception
Return values
BulkActionResponse

doneReturnSubmittedByFilteredEntries()

public doneReturnSubmittedByFilteredEntries() : void
Tags
throws
DataException
throws
OptimisticLockException
throws
Exception

handleUpload()

public handleUpload(int $entryId, int $version[, bool $isReupload = false ]) : mixed
Parameters
$entryId : int
$version : int
$isReupload : bool = false
Tags
throws
RequestHasNoFileException

getStorageRelativePathPart()

protected getStorageRelativePathPart() : string
Return values
string

getUploadHandler()

protected getUploadHandler() : FileUpload
Return values
FileUpload

validate()

protected validate(int $entryId, int $version, bool $isReupload) : mixed
Parameters
$entryId : int
$version : int
$isReupload : bool

arrayMerge()

private arrayMerge(array<string|int, mixed>|null $firstArray, array<string|int, mixed>|null $secondArray) : array<string|int, mixed>|null
Parameters
$firstArray : array<string|int, mixed>|null
$secondArray : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

createDirectoryIfNeeded()

private createDirectoryIfNeeded(mixed $path) : mixed
Parameters
$path : mixed

createJobPaymentProofUploaded()

private createJobPaymentProofUploaded(mixed $clientId, mixed $entryId) : mixed
Parameters
$clientId : mixed
$entryId : mixed

handleSaveEntrySubmissionFile()

private handleSaveEntrySubmissionFile(EntryReport $entryReport, bool $isMultipleUpload, mixed $gcFullPath) : void
Parameters
$entryReport : EntryReport
$isMultipleUpload : bool
$gcFullPath : mixed
Tags
throws
DataException
throws
ORMException
throws
OptimisticLockException

        
On this page

Search results