PHP Class Elcodi\Admin\CartBundle\Controller\OrderController

Inheritance: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
Afficher le fichier Open project: elcodi/bamboo

Méthodes publiques

Méthode 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 méthode

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
Résultat Symfony\Component\HttpFoundation\RedirectResponse Back to referrer

changeShippingStateAction() public méthode

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
Résultat Symfony\Component\HttpFoundation\RedirectResponse Back to referrer

editAction() public méthode

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

listAction() public méthode

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
Résultat array Result