EC-CUBE4 APIドキュメント

EditController extends AbstractController

Table of Contents

$taxRuleService TaxRuleService
$deviceTypeRepository DeviceTypeRepository
$productRepository ProductRepository
$categoryRepository CategoryRepository
$customerRepository CustomerRepository
$serializer Serializer
$deliveryRepository DeliveryRepository
$purchaseFlow PurchaseFlow
$orderRepository OrderRepository
$orderNoProcessor OrderNoProcessor
$orderItemTypeRepository OrderItemTypeRepository
$orderStateMachine OrderStateMachine
$orderStatusRepository OrderStatusRepository
$orderHelper OrderHelper
$eccubeConfig EccubeConfig
$entityManager EntityManagerInterface
$translator TranslatorInterface
$formFactory FormFactoryInterface
$eventDispatcher EventDispatcherInterface
$session Session
__construct() EditController constructor. mixed
index() 受注登録/編集画面. mixed
searchCustomerHtml() 顧客情報を検索する. JsonResponse
searchCustomerById() 顧客情報を検索する. JsonResponse
searchProduct() mixed
searchOrderItemType() その他明細情報を取得 array
setEccubeConfig() mixed
setEntityManager() mixed
setTranslator() mixed
setSession() mixed
setFormFactory() mixed
setEventDispatcher() mixed
addSuccess() mixed
addError() mixed
addDanger() mixed
addWarning() mixed
addInfo() mixed
addRequestError() mixed
clearMessage() mixed
deleteMessage() mixed
setLoginTargetPath() mixed
forwardToRoute() Forwards the request to another controller. Response
isTokenValid() Checks the validity of a CSRF token. bool

Properties

Methods

__construct()

EditController constructor.

public __construct( $taxRuleService : TaxRuleService , $deviceTypeRepository : DeviceTypeRepository , $productRepository : ProductRepository , $categoryRepository : CategoryRepository , $customerRepository : CustomerRepository , $serializer : SerializerInterface , $deliveryRepository : DeliveryRepository , $orderPurchaseFlow : PurchaseFlow , $orderRepository : OrderRepository , $orderNoProcessor : OrderNoProcessor , $orderItemTypeRepository : OrderItemTypeRepository , $orderStatusRepository : OrderStatusRepository , $orderStateMachine : OrderStateMachine , $orderHelper : OrderHelper ) : mixed
Parameters
$taxRuleService : TaxRuleService
$deviceTypeRepository : DeviceTypeRepository
$productRepository : ProductRepository
$categoryRepository : CategoryRepository
$customerRepository : CustomerRepository
$serializer : SerializerInterface
$deliveryRepository : DeliveryRepository
$orderPurchaseFlow : PurchaseFlow
$orderRepository : OrderRepository
$orderNoProcessor : OrderNoProcessor
$orderItemTypeRepository : OrderItemTypeRepository
$orderStatusRepository : OrderStatusRepository
$orderStateMachine : OrderStateMachine
$orderHelper : OrderHelper
Return values
mixed

index()

受注登録/編集画面.

public index( $request : Request [, $id : mixed = null ] , $router : RouterInterface ) : mixed
Parameters
$request : Request
$id : mixed = null
$router : RouterInterface
Tags
Route

("/%eccube_admin_route%/order/new", name="admin_order_new")

Route

("/%eccube_admin_route%/order/{id}/edit", requirements={"id" = "\d+"}, name="admin_order_edit")

Template

("@admin/Order/edit.twig")

Return values
mixed

searchCustomerHtml()

顧客情報を検索する.

public searchCustomerHtml( $request : Request [, $page_no : int = null ] , $paginator : Paginator ) : JsonResponse
Parameters
$request : Request
$page_no : int = null
$paginator : Paginator
Tags
Route

("/%eccube_admin_route%/order/search/customer/html", name="admin_order_search_customer_html")

Route

("/%eccube_admin_route%/order/search/customer/html/page/{page_no}", requirements={"page_No" = "\d+"}, name="admin_order_search_customer_html_page")

Template

("@admin/Order/search_customer.twig")

Return values
JsonResponse

searchCustomerById()

顧客情報を検索する.

public searchCustomerById( $request : Request ) : JsonResponse
Parameters
$request : Request
Tags
Route

("/%eccube_admin_route%/order/search/customer/id", name="admin_order_search_customer_by_id", methods={"POST"})

Return values
JsonResponse

searchProduct()

public searchProduct( $request : Request [, $page_no : mixed = null ] , $paginator : Paginator ) : mixed
Parameters
$request : Request
$page_no : mixed = null
$paginator : Paginator
Tags
Route

("/%eccube_admin_route%/order/search/product", name="admin_order_search_product")

Route

("/%eccube_admin_route%/order/search/product/page/{page_no}", requirements={"page_no" = "\d+"}, name="admin_order_search_product_page")

Template

("@admin/Order/search_product.twig")

Return values
mixed

searchOrderItemType()

その他明細情報を取得

public searchOrderItemType( $request : Request ) : array
Parameters
$request : Request
Tags
Route

("/%eccube_admin_route%/order/search/order_item_type", name="admin_order_search_order_item_type")

Template

("@admin/Order/order_item_type.twig")

Return values
array

setEntityManager()

public setEntityManager( $entityManager : EntityManagerInterface ) : mixed
Parameters
$entityManager : EntityManagerInterface
Tags
required
Return values
mixed

setTranslator()

public setTranslator( $translator : TranslatorInterface ) : mixed
Parameters
$translator : TranslatorInterface
Tags
required
Return values
mixed

setSession()

public setSession( $session : SessionInterface ) : mixed
Parameters
$session : SessionInterface
Tags
required
Return values
mixed

setFormFactory()

public setFormFactory( $formFactory : FormFactoryInterface ) : mixed
Parameters
$formFactory : FormFactoryInterface
Tags
required
Return values
mixed

setEventDispatcher()

public setEventDispatcher( $eventDispatcher : EventDispatcherInterface ) : mixed
Parameters
$eventDispatcher : EventDispatcherInterface
Tags
required
Return values
mixed

addSuccess()

public addSuccess( $message : mixed [, $namespace : mixed = 'front' ] ) : mixed
Parameters
$message : mixed
$namespace : mixed = 'front'
Return values
mixed

addError()

public addError( $message : mixed [, $namespace : mixed = 'front' ] ) : mixed
Parameters
$message : mixed
$namespace : mixed = 'front'
Return values
mixed

addDanger()

public addDanger( $message : mixed [, $namespace : mixed = 'front' ] ) : mixed
Parameters
$message : mixed
$namespace : mixed = 'front'
Return values
mixed

addWarning()

public addWarning( $message : mixed [, $namespace : mixed = 'front' ] ) : mixed
Parameters
$message : mixed
$namespace : mixed = 'front'
Return values
mixed

addInfo()

public addInfo( $message : mixed [, $namespace : mixed = 'front' ] ) : mixed
Parameters
$message : mixed
$namespace : mixed = 'front'
Return values
mixed

addRequestError()

public addRequestError( $message : mixed [, $namespace : mixed = 'front' ] ) : mixed
Parameters
$message : mixed
$namespace : mixed = 'front'
Return values
mixed

setLoginTargetPath()

public setLoginTargetPath( $targetPath : string [, $namespace : mixed = null ] ) : mixed
Parameters
$targetPath : string
$namespace : mixed = null
Return values
mixed

forwardToRoute()

Forwards the request to another controller.

public forwardToRoute( $route : string [, $path : array = [] ] [, $query : array = [] ] ) : Response
Parameters
$route : string

The name of the route

$path : array = []

An array of path parameters

$query : array = []

An array of query parameters

Return values
Response

A Response instance

isTokenValid()

Checks the validity of a CSRF token.

protected isTokenValid( ) : bool

if token is invalid, throws AccessDeniedHttpException.

Tags
throws
AccessDeniedHttpException
Return values
bool

Search results