class Sale extends BaseAction implements EventSubscriberInterface

Class Sale

Methods

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

Toggle visibility for an object

from  BaseAction
updateProductsSaleStatus( ProductSaleStatusUpdateEvent $event)

Update the promo status of the sale's selected products and combinations

create( SaleCreateEvent $event)

Create a new Sale

update( SaleUpdateEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Process update sale

toggleActivity( SaleToggleActivityEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Toggle Sale activity

delete( SaleDeleteEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Delete a sale

clearStatus( SaleClearStatusEvent $event)

Clear all sales

checkSaleActivation( SaleActiveStatusCheckEvent $event, $eventName, EventDispatcherInterface $dispatcher)

This method check the activation and deactivation dates of sales, and perform the required action depending on the current date.

static 
getSubscribedEvents()

No description

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 115
updateProductsSaleStatus( ProductSaleStatusUpdateEvent $event)

Update the promo status of the sale's selected products and combinations

Parameters

ProductSaleStatusUpdateEvent $event

Exceptions

RuntimeException
Exception
PropelException

at line 194
create( SaleCreateEvent $event)

Create a new Sale

Parameters

SaleCreateEvent $event

at line 216
update( SaleUpdateEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Process update sale

Parameters

SaleUpdateEvent $event
$eventName
EventDispatcherInterface $dispatcher

Exceptions

PropelException

at line 328
toggleActivity( SaleToggleActivityEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Toggle Sale activity

Parameters

SaleToggleActivityEvent $event
$eventName
EventDispatcherInterface $dispatcher

Exceptions

PropelException

at line 365
delete( SaleDeleteEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Delete a sale

Parameters

SaleDeleteEvent $event
$eventName
EventDispatcherInterface $dispatcher

Exceptions

PropelException

at line 402
clearStatus( SaleClearStatusEvent $event)

Clear all sales

Parameters

SaleClearStatusEvent $event

Exceptions

PropelException

at line 436
checkSaleActivation( SaleActiveStatusCheckEvent $event, $eventName, EventDispatcherInterface $dispatcher)

This method check the activation and deactivation dates of sales, and perform the required action depending on the current date.

Parameters

SaleActiveStatusCheckEvent $event
$eventName
EventDispatcherInterface $dispatcher

Exceptions

PropelException

at line 489
static getSubscribedEvents()