PHP Класс Elcodi\Admin\CartBundle\Controller\OrderController

Наследование: extends Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

changePaymentStateAction() публичный Метод

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
Результат Symfony\Component\HttpFoundation\RedirectResponse Back to referrer

changeShippingStateAction() публичный Метод

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
Результат Symfony\Component\HttpFoundation\RedirectResponse Back to referrer

editAction() публичный Метод

Edit and Saves order
public editAction ( Elcodi\Component\Cart\Entity\Interfaces\OrderInterface $order ) : array
$order Elcodi\Component\Cart\Entity\Interfaces\OrderInterface Order
Результат array Data

listAction() публичный Метод

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
Результат array Result