PHP Class Sonata\BasketBundle\Controller\BasketController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: sonata-project/ecommerce

Public Methods

Method Description
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.

Method Details

addProductAction() public method

Adds a product to the basket.
public addProductAction ( ) : RedirectResponse | Response
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

authenticationStepAction() public method

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
return Symfony\Component\HttpFoundation\RedirectResponse

deliveryAddressStepAction() public method

Order process step 2: choose an address from existing ones or create a new one.
public deliveryAddressStepAction ( ) : RedirectResponse | Response
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

deliveryStepAction() public method

Order process step 3: choose delivery mode.
public deliveryStepAction ( ) : RedirectResponse | Response
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

finalReviewStepAction() public method

Order process step 6: order's review & conditions acceptance checkbox.
public finalReviewStepAction ( ) : RedirectResponse | Response
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

headerPreviewAction() public method

Displays a header preview of the basket.
public headerPreviewAction ( ) : Response
return Symfony\Component\HttpFoundation\Response

indexAction() public method

Shows the basket.
public indexAction ( Form $form = null ) : Response
$form Symfony\Component\DomCrawler\Form
return Symfony\Component\HttpFoundation\Response

paymentAddressStepAction() public method

Order process step 4: choose a billing address from existing ones or create a new one.
public paymentAddressStepAction ( ) : RedirectResponse | Response
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

paymentStepAction() public method

Order process step 5: choose payment mode.
public paymentStepAction ( ) : RedirectResponse | Response
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

resetAction() public method

Resets (empties) the basket.
public resetAction ( ) : RedirectResponse
return Symfony\Component\HttpFoundation\RedirectResponse

updateAction() public method

Update basket form rendering & saving.
public updateAction ( ) : RedirectResponse
return Symfony\Component\HttpFoundation\RedirectResponse