ProductComponent
extends BaseComponent
in package
Class UserComponent
Table of Contents
Constants
- pageSize = 300
Properties
- $trans : Translator
- $vatRateHistoryRepository : VatRateHistoryRepository
- $latestCountryVatTypeRateAssoc : mixed
- $userModules : mixed
Methods
- __construct() : mixed
- filterByCountryName() : mixed
- findVatTypeById() : mixed
- findVatTypesById() : mixed
- formatObjectProduct() : mixed
- formatVatTypeRate() : mixed
- getDefaultVatTypes() : string|null|array<string|int, string|null>
- setByImport() : mixed
- _() : mixed
- getImportRowByProductInfoAndIntegrationAlias() : mixed
- getIntegrationName() : mixed
- integrationAliasIsEqualToRowAlias() : bool
Constants
pageSize
public
mixed
pageSize
= 300
Tags
Properties
$trans read-only
public
Translator
$trans
$vatRateHistoryRepository
public
VatRateHistoryRepository
$vatRateHistoryRepository
$latestCountryVatTypeRateAssoc
private
mixed
$latestCountryVatTypeRateAssoc
$userModules
private
mixed
$userModules
Methods
__construct()
public
__construct() : mixed
filterByCountryName()
public
static filterByCountryName(mixed $vatTypesAll) : mixed
Parameters
- $vatTypesAll : mixed
findVatTypeById()
public
static findVatTypeById(mixed $vatTypesAll, mixed $cVat) : mixed
Parameters
- $vatTypesAll : mixed
- $cVat : mixed
findVatTypesById()
public
static findVatTypesById(mixed $vatTypesAll, mixed $productCountryVats) : mixed
Parameters
- $vatTypesAll : mixed
- $productCountryVats : mixed
formatObjectProduct()
public
formatObjectProduct(mixed &$productPlus) : mixed
Parameters
- $productPlus : mixed
formatVatTypeRate()
public
static formatVatTypeRate(mixed $type_id, mixed $type_rate) : mixed
Parameters
- $type_id : mixed
- $type_rate : mixed
getDefaultVatTypes()
public
static getDefaultVatTypes(mixed $country_id[, mixed $vat_type_id = null ]) : string|null|array<string|int, string|null>
Parameters
- $country_id : mixed
- $vat_type_id : mixed = null
Return values
string|null|array<string|int, string|null>setByImport()
public
static setByImport(mixed $db, mixed $productByAsinList, array<string|int, mixed> $import, mixed $userId) : mixed
Parameters
- $db : mixed
- $productByAsinList : mixed
- $import : array<string|int, mixed>
- $userId : mixed
_()
protected
static _(mixed $string[, array<string|int, mixed> $params = [] ]) : mixed
Parameters
- $string : mixed
- $params : array<string|int, mixed> = []
getImportRowByProductInfoAndIntegrationAlias()
private
static getImportRowByProductInfoAndIntegrationAlias(array<string|int, mixed> $import, Product $product, mixed $integrationAlias) : mixed
Parameters
- $import : array<string|int, mixed>
- $product : Product
- $integrationAlias : mixed
getIntegrationName()
private
getIntegrationName(mixed $userModuleId) : mixed
Parameters
- $userModuleId : mixed
integrationAliasIsEqualToRowAlias()
private
static integrationAliasIsEqualToRowAlias(mixed $importIntegrationAlias, mixed $integrationAlias) : bool
Parameters
- $importIntegrationAlias : mixed
- $integrationAlias : mixed