class Order extends BaseAction implements EventSubscriberInterface

Class Order

Methods

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

Toggle visibility for an object

from  BaseAction
__construct( RequestStack $requestStack, MailerFactory $mailer, SecurityContext $securityContext)

No description

setDeliveryAddress( OrderEvent $event)

No description

setDeliveryModule( OrderEvent $event)

No description

setPostage( OrderEvent $event)

No description

setInvoiceAddress( OrderEvent $event)

No description

setPaymentModule( OrderEvent $event)

No description

createManual( OrderManualEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Create an order outside of the front-office context, e.g. manually from the back-office.

create( OrderEvent $event, $eventName, EventDispatcherInterface $dispatcher)

No description

orderBeforePayment( OrderEvent $event, $eventName, EventDispatcherInterface $dispatcher)

No description

orderCartClear( OrderEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Clear the cart and the order in the customer session once the order is placed, and the payment performed.

sendConfirmationEmail( OrderEvent $event)

No description

sendNotificationEmail( OrderEvent $event)

No description

updateStatus( OrderEvent $event, $eventName, EventDispatcherInterface $dispatcher)

No description

updateQuantity( Order $order, $newStatus, $manageStockOnCreation = true)

No description

updateDeliveryRef( OrderEvent $event)

No description

updateAddress( OrderAddressEvent $event)

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 70
__construct( RequestStack $requestStack, MailerFactory $mailer, SecurityContext $securityContext)

Parameters

RequestStack $requestStack
MailerFactory $mailer
SecurityContext $securityContext

at line 80
setDeliveryAddress( OrderEvent $event)

Parameters

OrderEvent $event

at line 92
setDeliveryModule( OrderEvent $event)

Parameters

OrderEvent $event

at line 113
setPostage( OrderEvent $event)

Parameters

OrderEvent $event

at line 127
setInvoiceAddress( OrderEvent $event)

Parameters

OrderEvent $event

at line 139
setPaymentModule( OrderEvent $event)

Parameters

OrderEvent $event

at line 388
createManual( OrderManualEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Create an order outside of the front-office context, e.g. manually from the back-office.

Parameters

OrderManualEvent $event
$eventName
EventDispatcherInterface $dispatcher

at line 421
create( OrderEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Parameters

OrderEvent $event
$eventName
EventDispatcherInterface $dispatcher

Exceptions

TheliaProcessException

at line 465
orderBeforePayment( OrderEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Parameters

OrderEvent $event
$eventName
EventDispatcherInterface $dispatcher

at line 480
orderCartClear( OrderEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Clear the cart and the order in the customer session once the order is placed, and the payment performed.

Parameters

OrderEvent $event
$eventName
EventDispatcherInterface $dispatcher

at line 495
sendConfirmationEmail( OrderEvent $event)

Parameters

OrderEvent $event

Exceptions

Exception if the message cannot be loaded.

at line 512
sendNotificationEmail( OrderEvent $event)

Parameters

OrderEvent $event

Exceptions

Exception if the message cannot be loaded.

at line 526
updateStatus( OrderEvent $event, $eventName, EventDispatcherInterface $dispatcher)

Parameters

OrderEvent $event
$eventName
EventDispatcherInterface $dispatcher

at line 552
updateQuantity( Order $order, $newStatus, $manageStockOnCreation = true)

Parameters

Order $order
$newStatus
$manageStockOnCreation

Exceptions

TheliaProcessException

at line 635
updateDeliveryRef( OrderEvent $event)

Parameters

OrderEvent $event

at line 648
updateAddress( OrderAddressEvent $event)

Parameters

OrderAddressEvent $event

at line 698
static getSubscribedEvents()

{@inheritdoc}