PHP Class Eccube\Controller\CartController

Inheritance: extends AbstractController
显示文件 Open project: ec-cube/ec-cube

Public Methods

Method Description
add ( Application $app, Request $request ) : RedirectResponse | Response カートに商品を追加する.
buystep ( Application $app, Request $request ) : RedirectResponse | Response カートをロック状態に設定し、購入確認画面へ遷移する.
down ( Application $app, Request $request, $productClassId ) : RedirectResponse | Response カートに入っている商品の個数を1減らす.
index ( Application $app, Request $request ) : Response カート画面.
remove ( Application $app, Request $request, $productClassId ) : RedirectResponse | Response カートに入っている商品を削除する.
setQuantity ( Application $app, Request $request, $productClassId, $quantity ) : RedirectResponse | Response カートに商品を個数を指定して設定する.
up ( Application $app, Request $request, $productClassId ) : RedirectResponse | Response カートに入っている商品の個数を1増やす.

Method Details

add() public method

カートに商品を追加する.
public add ( Application $app, Request $request ) : RedirectResponse | Response
$app Eccube\Application
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

buystep() public method

カートをロック状態に設定し、購入確認画面へ遷移する.
public buystep ( Application $app, Request $request ) : RedirectResponse | Response
$app Eccube\Application
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

down() public method

マイナスになる場合は, 商品をカートから削除する.
public down ( Application $app, Request $request, $productClassId ) : RedirectResponse | Response
$app Eccube\Application
$request Symfony\Component\HttpFoundation\Request
$productClassId
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

index() public method

カート画面.
public index ( Application $app, Request $request ) : Response
$app Eccube\Application
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

remove() public method

カートに入っている商品を削除する.
public remove ( Application $app, Request $request, $productClassId ) : RedirectResponse | Response
$app Eccube\Application
$request Symfony\Component\HttpFoundation\Request
$productClassId
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

setQuantity() public method

カートに商品を個数を指定して設定する.
Deprecation: since 3.0.0, to be removed in 3.1
public setQuantity ( Application $app, Request $request, $productClassId, $quantity ) : RedirectResponse | Response
$app Eccube\Application
$request Symfony\Component\HttpFoundation\Request
$productClassId
$quantity
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

up() public method

カートに入っている商品の個数を1増やす.
public up ( Application $app, Request $request, $productClassId ) : RedirectResponse | Response
$app Eccube\Application
$request Symfony\Component\HttpFoundation\Request
$productClassId
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response