PriceProvider extends CatalogProvider
Columns provider.
Table of Contents
Methods
- __construct() : mixed
- getCurrencyPriceTypeId() : mixed
- getPriceTypeColumnId() : string
- getSettings() : ElementSettings
- parsePriceTypeId() : int|null
- prepareColumns() : array<string|int, Column>
- Provider columns.
Methods
__construct()
public
__construct(ElementSettings $settings) : mixed
Parameters
- $settings : ElementSettings
-
if not used, may be
null
getCurrencyPriceTypeId()
public
static getCurrencyPriceTypeId(int $priceTypeId) : mixed
Parameters
- $priceTypeId : int
getPriceTypeColumnId()
public
static getPriceTypeColumnId(int $priceTypeId) : string
Parameters
- $priceTypeId : int
Return values
stringgetSettings()
public
getSettings() : ElementSettings
Return values
ElementSettingsparsePriceTypeId()
public
static parsePriceTypeId(string $columnId) : int|null
Parameters
- $columnId : string
Return values
int|nullprepareColumns()
Provider columns.
public
prepareColumns() : array<string|int, Column>
Return values
array<string|int, Column> —allowed without keys.