PHP 클래스 Sonata\BasketBundle\Controller\BasketController

상속: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
파일 보기 프로젝트 열기: sonata-project/ecommerce

공개 메소드들

메소드 설명
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