PHP Class Elcodi\Admin\CartBundle\Controller\OrderController

Inheritance: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
Exibir arquivo Open project: elcodi/bamboo

Public Methods

Method Description
changePaymentStateAction ( Request $request, Elcodi\Component\Cart\Entity\Interfaces\OrderInterface $order, string $transition ) : RedirectResponse Change payment state
changeShippingStateAction ( Request $request, Elcodi\Component\Cart\Entity\Interfaces\OrderInterface $order, string $transition ) : RedirectResponse Change shipping state
editAction ( Elcodi\Component\Cart\Entity\Interfaces\OrderInterface $order ) : array Edit and Saves order
listAction ( integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array List elements of certain entity type.

Method Details

changePaymentStateAction() public method

Change payment state
public changePaymentStateAction ( Request $request, Elcodi\Component\Cart\Entity\Interfaces\OrderInterface $order, string $transition ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request Request
$order Elcodi\Component\Cart\Entity\Interfaces\OrderInterface Order
$transition string Verb to apply
return Symfony\Component\HttpFoundation\RedirectResponse Back to referrer

changeShippingStateAction() public method

Change shipping state
public changeShippingStateAction ( Request $request, Elcodi\Component\Cart\Entity\Interfaces\OrderInterface $order, string $transition ) : RedirectResponse
$request Symfony\Component\HttpFoundation\Request Request
$order Elcodi\Component\Cart\Entity\Interfaces\OrderInterface Order
$transition string Verb to apply
return Symfony\Component\HttpFoundation\RedirectResponse Back to referrer

editAction() public method

Edit and Saves order
public editAction ( Elcodi\Component\Cart\Entity\Interfaces\OrderInterface $order ) : array
$order Elcodi\Component\Cart\Entity\Interfaces\OrderInterface Order
return array Data

listAction() public method

This action is just a wrapper, so should never get any data, as this is component responsibility
public listAction ( integer $page, integer $limit, string $orderByField, string $orderByDirection ) : array
$page integer Page
$limit integer Limit of items per page
$orderByField string Field to order by
$orderByDirection string Direction to order by
return array Result