PricelistManager
class PricelistManager implements BasicEntityManagerInterface
Class PricelistManager is injected as alligator.pricelist.manager service. PricelistManager handles the logic for entity.
Properties
| protected PricelistRepository | $repository |
Methods
PricelistManager constructor.
Get id and erp code of all pricelists
Get all pricelists
Get all price lists as array
Get all pricelist for specified user
Get reference to object
Get default pricelist Cache this result
Set Pricelist as default, update currentPrice field for products
Get single price list by id
Dispatch event to recalculate pricelist data
Get single Pricelist for id
Get single Pricelist with specified code
Details
at line 35
__construct(PricelistRepository $repository, PricelistEventContainer $eventContainer)
PricelistManager constructor.
at line 56
array
getAllPricelists()
Get id and erp code of all pricelists
at line 65
array
findAllPricelists()
Get all pricelists
at line 74
array
getPricelistsForBackend()
Get all price lists as array
at line 85
array
getPricelistsForUser(mixed $id)
Get all pricelist for specified user
at line 124
PriceList
getReference(mixed $id)
Get reference to object
at line 135
mixed
getDefaultPricelist()
Get default pricelist Cache this result
at line 146
bool
setAsDefault(mixed $id)
Set Pricelist as default, update currentPrice field for products
at line 166
mixed
deleteList(mixed $id)
Get single price list by id
at line 177
dispatchOnPricelistChanged(mixed $pricelistId)
Dispatch event to recalculate pricelist data
at line 188
Pricelist
getPricelistForId(mixed $id)
Get single Pricelist for id
at line 201
Pricelist|null
getPricelistForERPCode(string $code)
Get single Pricelist with specified code