Sale
class Sale extends BaseAction implements EventSubscriberInterface
Class Sale
Methods
Toggle visibility for an object
Update the promo status of the sale's selected products and combinations
Create a new Sale
Process update sale
Toggle Sale activity
Delete a sale
Clear all sales
This method check the activation and deactivation dates of sales, and perform the required action depending on the current date.
No description
Details
in
BaseAction at line 130
mixed
genericToggleVisibility(
ModelCriteria $query,
ToggleVisibilityEvent $event,
EventDispatcherInterface $dispatcher = null)
Toggle visibility for an object
at line 115
updateProductsSaleStatus(
ProductSaleStatusUpdateEvent $event)
Update the promo status of the sale's selected products and combinations
at line 194
create(
SaleCreateEvent $event)
Create a new Sale
at line 216
update(
SaleUpdateEvent $event, $eventName,
EventDispatcherInterface $dispatcher)
Process update sale
at line 328
toggleActivity(
SaleToggleActivityEvent $event, $eventName,
EventDispatcherInterface $dispatcher)
Toggle Sale activity
at line 365
delete(
SaleDeleteEvent $event, $eventName,
EventDispatcherInterface $dispatcher)
Delete a sale
at line 402
clearStatus(
SaleClearStatusEvent $event)
Clear all sales
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.