class ProductSaleElement extends BaseAction implements EventSubscriberInterface

Methods

mixed
genericToggleVisibility( ModelCriteria $query, ToggleVisibilityEvent $event, EventDispatcherInterface $dispatcher = null)

Toggle visibility for an object

from  BaseAction
__construct( EventDispatcherInterface $eventDispatcher)

No description

create( ProductSaleElementCreateEvent $event)

Create a new product sale element, with or without combination

update( ProductSaleElementUpdateEvent $event)

Update an existing product sale element

delete( ProductSaleElementDeleteEvent $event)

Delete a product sale element

generateCombinations( ProductCombinationGenerationEvent $event)

Generate combinations. All existing combinations for the product are deleted.

clonePSE( ProductCloneEvent $event)

Clone product's PSEs and associated datas

createClonePSE( ProductCloneEvent $event, ProductSaleElements $originalProductPSE, $currencyId)

No description

updateClonePSE( ProductCloneEvent $event, $clonedProductPSEId, ProductSaleElements $originalProductPSE, $key)

No description

clonePSEAssociatedFiles($clonedProductId, $clonedProductPSEId, $originalProductPSEFiles, $type)

No description

static 
getSubscribedEvents()

{@inheritDoc}

Details

in BaseAction at line 130
mixed genericToggleVisibility( ModelCriteria $query, ToggleVisibilityEvent $event, EventDispatcherInterface $dispatcher = null)

Toggle visibility for an object

Parameters

ModelCriteria $query
ToggleVisibilityEvent $event
EventDispatcherInterface $dispatcher

Return Value

mixed

at line 49
__construct( EventDispatcherInterface $eventDispatcher)

Parameters

EventDispatcherInterface $eventDispatcher

at line 60
create( ProductSaleElementCreateEvent $event)

Create a new product sale element, with or without combination

Parameters

ProductSaleElementCreateEvent $event

Exceptions

Exception

at line 118
update( ProductSaleElementUpdateEvent $event)

Update an existing product sale element

Parameters

ProductSaleElementUpdateEvent $event

Exceptions

Exception

at line 209
delete( ProductSaleElementDeleteEvent $event)

Delete a product sale element

Parameters

ProductSaleElementDeleteEvent $event

Exceptions

Exception

at line 254
generateCombinations( ProductCombinationGenerationEvent $event)

Generate combinations. All existing combinations for the product are deleted.

Parameters

ProductCombinationGenerationEvent $event

Exceptions

Exception

at line 330
clonePSE( ProductCloneEvent $event)

Clone product's PSEs and associated datas

Parameters

ProductCloneEvent $event

at line 374
createClonePSE( ProductCloneEvent $event, ProductSaleElements $originalProductPSE, $currencyId)

Parameters

ProductCloneEvent $event
ProductSaleElements $originalProductPSE
$currencyId

at line 387
updateClonePSE( ProductCloneEvent $event, $clonedProductPSEId, ProductSaleElements $originalProductPSE, $key)

Parameters

ProductCloneEvent $event
$clonedProductPSEId
ProductSaleElements $originalProductPSE
$key

at line 412
clonePSEAssociatedFiles($clonedProductId, $clonedProductPSEId, $originalProductPSEFiles, $type)

Parameters

$clonedProductId
$clonedProductPSEId
$originalProductPSEFiles
$type

at line 474
static getSubscribedEvents()

{@inheritDoc}