OrderController extends AbstractController
Table of Contents
Properties
$purchaseFlow
protected
PurchaseFlow
$purchaseFlow
$csvExportService
protected
CsvExportService
$csvExportService
$customerRepository
protected
CustomerRepository
$customerRepository
$paymentRepository
protected
PaymentRepository
$paymentRepository
$sexRepository
protected
SexRepository
$sexRepository
$orderStatusRepository
protected
OrderStatusRepository
$orderStatusRepository
$pageMaxRepository
protected
PageMaxRepository
$pageMaxRepository
$productStatusRepository
protected
ProductStatusRepository
$productStatusRepository
$orderRepository
protected
OrderRepository
$orderRepository
$orderPdfRepository
protected
OrderPdfRepository
$orderPdfRepository
$productStockRepository
protected
ProductStockRepository
$productStockRepository
$orderPdfService
protected
OrderPdfService
$orderPdfService
$validator
protected
ValidatorInterface
$validator
$orderStateMachine
protected
OrderStateMachine
$orderStateMachine
$mailService
protected
MailService
$mailService
$eccubeConfig
protected
EccubeConfig
$eccubeConfig
$entityManager
protected
EntityManagerInterface
$entityManager
$translator
protected
TranslatorInterface
$translator
$formFactory
protected
FormFactoryInterface
$formFactory
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
$session
protected
Session
$session
Methods
__construct()
OrderController constructor.
public
__construct(
$orderPurchaseFlow :
PurchaseFlow
, $csvExportService :
CsvExportService
, $customerRepository :
CustomerRepository
, $paymentRepository :
PaymentRepository
, $sexRepository :
SexRepository
, $orderStatusRepository :
OrderStatusRepository
, $pageMaxRepository :
PageMaxRepository
, $productStatusRepository :
ProductStatusRepository
, $productStockRepository :
ProductStockRepository
, $orderRepository :
OrderRepository
, $orderPdfRepository :
OrderPdfRepository
, $validator :
ValidatorInterface
, $orderStateMachine :
OrderStateMachine
, $mailService :
MailService
)
: mixed
Parameters
- $orderPurchaseFlow : PurchaseFlow
- $csvExportService : CsvExportService
- $customerRepository : CustomerRepository
- $paymentRepository : PaymentRepository
- $sexRepository : SexRepository
- $orderStatusRepository : OrderStatusRepository
- $pageMaxRepository : PageMaxRepository
- $productStatusRepository : ProductStatusRepository
- $productStockRepository : ProductStockRepository
- $orderRepository : OrderRepository
- $orderPdfRepository : OrderPdfRepository
- $validator : ValidatorInterface
- $orderStateMachine : OrderStateMachine
;
- $mailService : MailService
Return values
mixedindex()
受注一覧画面.
public
index(
$request :
Request
[, $page_no :
mixed
= null ]
, $paginator :
PaginatorInterface
)
: mixed
- 検索条件, ページ番号, 表示件数はセッションに保持されます.
- クエリパラメータでresume=1が指定された場合、検索条件, ページ番号, 表示件数をセッションから復旧します.
- 各データの, セッションに保持するアクションは以下の通りです.
- 検索ボタン押下時
- 検索条件をセッションに保存します
- ページ番号は1で初期化し、セッションに保存します。
- 表示件数変更時
- クエリパラメータpage_countをセッションに保存します。
- ただし, mtb_page_maxと一致しない場合, eccube_default_page_countが保存されます.
- ページング時
- URLパラメータpage_noをセッションに保存します.
- 初期表示
- 検索条件は空配列, ページ番号は1で初期化し, セッションに保存します.
- 検索ボタン押下時
Parameters
- $request : Request
- $page_no : mixed = null
- $paginator : PaginatorInterface
Tags
Return values
mixedbulkDelete()
public
bulkDelete(
$request :
Request
)
: mixed
Parameters
- $request : Request
Tags
Return values
mixedexportOrder()
受注CSVの出力.
public
exportOrder(
$request :
Request
)
: StreamedResponse
Parameters
- $request : Request
Tags
Return values
StreamedResponseexportShipping()
配送CSVの出力.
public
exportShipping(
$request :
Request
)
: StreamedResponse
Parameters
- $request : Request
Tags
Return values
StreamedResponseexportCsv()
protected
exportCsv(
$request :
Request
, $csvTypeId :
, $fileName :
string
)
: StreamedResponse
Parameters
Return values
StreamedResponseupdateOrderStatus()
Update to order status
public
updateOrderStatus(
$request :
Request
, $Shipping :
Shipping
)
: JsonResponse
Parameters
- $request : Request
- $Shipping : Shipping
Tags
Return values
JsonResponseupdateTrackingNumber()
Update to Tracking number.
public
updateTrackingNumber(
$request :
Request
, $shipping :
Shipping
)
: Response
Parameters
- $request : Request
- $shipping : Shipping
Tags
Return values
ResponseexportPdf()
public
exportPdf(
$request :
Request
)
: array|RedirectResponse
Parameters
- $request : Request
Tags
Return values
array|RedirectResponseexportPdfDownload()
public
exportPdfDownload(
$request :
Request
, $orderPdfService :
OrderPdfService
)
: Response
Parameters
- $request : Request
- $orderPdfService : OrderPdfService
Tags
Return values
ResponsesetEccubeConfig()
public
setEccubeConfig(
$eccubeConfig :
EccubeConfig
)
: mixed
Parameters
- $eccubeConfig : EccubeConfig
Tags
Return values
mixedsetEntityManager()
public
setEntityManager(
$entityManager :
EntityManagerInterface
)
: mixed
Parameters
- $entityManager : EntityManagerInterface
Tags
Return values
mixedsetTranslator()
public
setTranslator(
$translator :
TranslatorInterface
)
: mixed
Parameters
- $translator : TranslatorInterface
Tags
Return values
mixedsetSession()
public
setSession(
$session :
SessionInterface
)
: mixed
Parameters
- $session : SessionInterface
Tags
Return values
mixedsetFormFactory()
public
setFormFactory(
$formFactory :
FormFactoryInterface
)
: mixed
Parameters
- $formFactory : FormFactoryInterface
Tags
Return values
mixedsetEventDispatcher()
public
setEventDispatcher(
$eventDispatcher :
EventDispatcherInterface
)
: mixed
Parameters
- $eventDispatcher : EventDispatcherInterface
Tags
Return values
mixedaddSuccess()
public
addSuccess(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddError()
public
addError(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddDanger()
public
addDanger(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddWarning()
public
addWarning(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddInfo()
public
addInfo(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddRequestError()
public
addRequestError(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedclearMessage()
public
clearMessage(
)
: mixed
Return values
mixeddeleteMessage()
public
deleteMessage(
)
: mixed
Return values
mixedsetLoginTargetPath()
public
setLoginTargetPath(
$targetPath :
string
[, $namespace :
mixed
= null ]
)
: mixed
Parameters
- $targetPath : string
- $namespace : mixed = null
Return values
mixedforwardToRoute()
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.