ProductImportService
extends Injectable
in package
Table of Contents
Constants
- ALLOWED_EXTENSIONS = ['csv']
Properties
- $auth : AuthComponent
- $request : Request
- $storage : mixed
Methods
- __construct() : mixed
- allRequiredColumnsExists() : array<string|int, string>
- downloadSample() : mixed
- importProductListByUserId() : mixed
- removeCsvSemicolons() : mixed
- saveToCloud() : mixed
Constants
ALLOWED_EXTENSIONS
private
mixed
ALLOWED_EXTENSIONS
= ['csv']
Properties
$auth
private
AuthComponent
$auth
$request
private
Request
$request
$storage
private
mixed
$storage
Methods
__construct()
public
__construct(Request $request, AuthComponent $auth, GoogleCloudStorageComponent $storage) : mixed
Parameters
- $request : Request
- $auth : AuthComponent
- $storage : GoogleCloudStorageComponent
allRequiredColumnsExists()
public
static allRequiredColumnsExists(mixed $path) : array<string|int, string>
Parameters
- $path : mixed
Return values
array<string|int, string>downloadSample()
public
downloadSample() : mixed
importProductListByUserId()
public
importProductListByUserId(int $userId) : mixed
Parameters
- $userId : int
removeCsvSemicolons()
public
removeCsvSemicolons(mixed $path) : mixed
Parameters
- $path : mixed
saveToCloud()
public
saveToCloud(mixed $path, mixed $userId, mixed $filename) : mixed
Parameters
- $path : mixed
- $userId : mixed
- $filename : mixed