ManualOrderUploadHelperService
in package
Table of Contents
Constants
- allowedExtension = ['xls', 'xlsx', 'csv']
Properties
- $path : string
- $securityProvider : ISecurityProvider
- $user : Client|null
Methods
- __construct() : mixed
- getAbsolutePath() : mixed
- getAllowedExtension() : array<string|int, mixed>
- getCloudPath() : mixed
- getPath() : string
- getUser() : Client
- getValidationFunctions() : mixed
- getValidatorArrayByPropertyName() : mixed
- loadFileToArray() : mixed
- parseYesNoValue() : mixed
- pickReader() : Csv|Xlsx|Xls
Constants
allowedExtension
public
mixed
allowedExtension
= ['xls', 'xlsx', 'csv']
Properties
$path
private
string
$path
$securityProvider
private
ISecurityProvider
$securityProvider
$user
private
Client|null
$user
Methods
__construct()
public
__construct(ISecurityProvider $securityProvider) : mixed
Parameters
- $securityProvider : ISecurityProvider
getAbsolutePath()
public
getAbsolutePath(ApiOrderUploadBatch $apiOrderUploadBatch) : mixed
Parameters
- $apiOrderUploadBatch : ApiOrderUploadBatch
getAllowedExtension()
public
getAllowedExtension() : array<string|int, mixed>
Return values
array<string|int, mixed>getCloudPath()
public
getCloudPath(ApiOrderUploadBatch $apiOrderUploadBatch) : mixed
Parameters
- $apiOrderUploadBatch : ApiOrderUploadBatch
getPath()
public
getPath([Client|null $user = null ][, mixed $forceUpdate = false ]) : string
Parameters
- $user : Client|null = null
- $forceUpdate : mixed = false
Return values
stringgetUser()
public
getUser([mixed $user = null ][, mixed $forceUpdate = false ]) : Client
Parameters
- $user : mixed = null
- $forceUpdate : mixed = false
Return values
ClientgetValidationFunctions()
public
getValidationFunctions() : mixed
getValidatorArrayByPropertyName()
public
getValidatorArrayByPropertyName(mixed $propertyName) : mixed
Parameters
- $propertyName : mixed
loadFileToArray()
public
loadFileToArray(ApiOrderUploadBatch $apiOrderUploadBatch) : mixed
Parameters
- $apiOrderUploadBatch : ApiOrderUploadBatch
parseYesNoValue()
public
static parseYesNoValue(mixed $value) : mixed
Parameters
- $value : mixed
pickReader()
public
pickReader(ApiOrderUploadBatch $apiOrderUploadBatch) : Csv|Xlsx|Xls
Parameters
- $apiOrderUploadBatch : ApiOrderUploadBatch
Tags
Return values
Csv|Xlsx|Xls —$reader