PriceList
trait PriceList
Price list table trait
Methods
Relatioin|null
currency()
Currency relation
int|null
getCurrency(string|null $code = null)
Get currency id
string|null
getCurrencyClass()
Get currency model class
string|null
getPriceTypeClass()
Get price type model class
string|null
getPriceListDefinitionClass()
Get price list definition model class
Model|false
createPrice(integer $productId, string $key, string|null $currencyCode = null, mixed $price = null)
Create price
boolean
createPiceList(integer $productId, string|null $typeName, string $currency = null)
Create price list
QueryBuilder
getPriceListQuery(integer $productId)
Get price list query
Model|null
getPriceList(integer $productId)
Get price list
bool
hasPrice(string $key, $productId)
Return true if price exist
boolean
savePrice($productId, $key, $price, $currency)
Save price
boolean
savePriceList($productId, array $data, $currency = null)
Save price list
Details
at line 25
Relatioin|null
currency()
Currency relation
at line 36
int|null
getCurrency(string|null $code = null)
Get currency id
at line 53
string|null
getCurrencyClass()
Get currency model class
at line 63
string|null
getPriceTypeClass()
Get price type model class
at line 73
string|null
getPriceListDefinitionClass()
Get price list definition model class
at line 84
Model|null
getType(string|null $key = null)
Get price type
at line 104
Model|false
createPrice(integer $productId, string $key, string|null $currencyCode = null, mixed $price = null)
Create price
at line 130
boolean
createPiceList(integer $productId, string|null $typeName, string $currency = null)
Create price list
at line 153
Model|null
getPrice(string $key, $productId)
Get price
at line 166
QueryBuilder
getPriceListQuery(integer $productId)
Get price list query
at line 177
Model|null
getPriceList(integer $productId)
Get price list
at line 189
bool
hasPrice(string $key, $productId)
Return true if price exist
at line 205
boolean
savePrice($productId, $key, $price, $currency)
Save price
at line 225
boolean
savePriceList($productId, array $data, $currency = null)
Save price list