PHP 클래스 Elcodi\Store\CartBundle\Controller\CartController

상속: extends Symfony\Bundle\FrameworkBundle\Controller\Controller, use trait Elcodi\Store\CoreBundle\Controller\Traits\TemplateRenderTrait
파일 보기 프로젝트 열기: elcodi/bamboo

공개 메소드들

메소드 설명
addPurchasableAction ( Request $request, Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, integer $id ) : Response Adds product into cart
emptyCartAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : RedirectResponse Empty Cart
navAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : Response reduced version of cart
relatedAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : array Purchasable related view
removeCartLineAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, Elcodi\Component\Cart\Entity\Interfaces\CartLineInterface $cartLine ) : RedirectResponse Deletes CartLine
updateCartAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, boolean $isValid ) : RedirectResponse Update Cart
viewAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : Response Cart view

메소드 상세

addPurchasableAction() 공개 메소드

Adds product into cart
public addPurchasableAction ( Request $request, Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, integer $id ) : Response
$request Symfony\Component\HttpFoundation\Request Request object
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
$id integer Purchasable Id
리턴 Symfony\Component\HttpFoundation\Response Redirect response

emptyCartAction() 공개 메소드

Empty Cart
public emptyCartAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : RedirectResponse
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
리턴 Symfony\Component\HttpFoundation\RedirectResponse

navAction() 공개 메소드

reduced version of cart
public navAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : Response
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
리턴 Symfony\Component\HttpFoundation\Response Response

relatedAction() 공개 메소드

Purchasable related view
public relatedAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : array
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
리턴 array

removeCartLineAction() 공개 메소드

Deletes CartLine
public removeCartLineAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, Elcodi\Component\Cart\Entity\Interfaces\CartLineInterface $cartLine ) : RedirectResponse
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
$cartLine Elcodi\Component\Cart\Entity\Interfaces\CartLineInterface Cart Line
리턴 Symfony\Component\HttpFoundation\RedirectResponse

updateCartAction() 공개 메소드

Update Cart
public updateCartAction ( Symfony\Component\Form\FormInterface $form, Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, boolean $isValid ) : RedirectResponse
$form Symfony\Component\Form\FormInterface Form
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
$isValid boolean Form is valid
리턴 Symfony\Component\HttpFoundation\RedirectResponse

viewAction() 공개 메소드

Cart view
public viewAction ( Symfony\Component\Form\FormView $formView, Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : Response
$formView Symfony\Component\Form\FormView Form view
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
리턴 Symfony\Component\HttpFoundation\Response Response