PHP Класс Sonata\BasketBundle\Controller\BasketController

Наследование: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Показать файл Открыть проект

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

Метод Описание
addProductAction ( ) : RedirectResponse | Response Adds a product to the basket.
authenticationStepAction ( ) : RedirectResponse Order process step 1: retrieve the customer associated with the logged in user if there's one or create an empty customer and put it in the basket.
deliveryAddressStepAction ( ) : RedirectResponse | Response Order process step 2: choose an address from existing ones or create a new one.
deliveryStepAction ( ) : RedirectResponse | Response Order process step 3: choose delivery mode.
finalReviewStepAction ( ) : RedirectResponse | Response Order process step 6: order's review & conditions acceptance checkbox.
headerPreviewAction ( ) : Response Displays a header preview of the basket.
indexAction ( Form $form = null ) : Response Shows the basket.
paymentAddressStepAction ( ) : RedirectResponse | Response Order process step 4: choose a billing address from existing ones or create a new one.
paymentStepAction ( ) : RedirectResponse | Response Order process step 5: choose payment mode.
resetAction ( ) : RedirectResponse Resets (empties) the basket.
updateAction ( ) : RedirectResponse Update basket form rendering & saving.

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

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

Adds a product to the basket.
public addProductAction ( ) : RedirectResponse | Response
Результат Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

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

Order process step 1: retrieve the customer associated with the logged in user if there's one or create an empty customer and put it in the basket.
public authenticationStepAction ( ) : RedirectResponse
Результат Symfony\Component\HttpFoundation\RedirectResponse

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

Order process step 2: choose an address from existing ones or create a new one.
public deliveryAddressStepAction ( ) : RedirectResponse | Response
Результат Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

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

Order process step 3: choose delivery mode.
public deliveryStepAction ( ) : RedirectResponse | Response
Результат Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

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

Order process step 6: order's review & conditions acceptance checkbox.
public finalReviewStepAction ( ) : RedirectResponse | Response
Результат Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

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

Displays a header preview of the basket.
public headerPreviewAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response

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

Shows the basket.
public indexAction ( Form $form = null ) : Response
$form Symfony\Component\DomCrawler\Form
Результат Symfony\Component\HttpFoundation\Response

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

Order process step 4: choose a billing address from existing ones or create a new one.
public paymentAddressStepAction ( ) : RedirectResponse | Response
Результат Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

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

Order process step 5: choose payment mode.
public paymentStepAction ( ) : RedirectResponse | Response
Результат Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

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

Resets (empties) the basket.
public resetAction ( ) : RedirectResponse
Результат Symfony\Component\HttpFoundation\RedirectResponse

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

Update basket form rendering & saving.
public updateAction ( ) : RedirectResponse
Результат Symfony\Component\HttpFoundation\RedirectResponse