AdminController extends AbstractController
Table of Contents
Properties
$authorizationChecker
protected
AuthorizationCheckerInterface
$authorizationChecker
$helper
protected
AuthenticationUtils
$helper
$memberRepository
protected
MemberRepository
$memberRepository
$encoderFactory
protected
EncoderFactoryInterface
$encoderFactory
$orderRepository
protected
OrderRepository
$orderRepository
$orderStatusRepository
protected
OrderStatusRepository
$orderStatusRepository
$customerRepository
protected
CustomerRepository
$customerRepository
$productRepository
protected
ProductRepository
$productRepository
$pluginApiService
protected
PluginApiService
$pluginApiService
$excludes
private
array
$excludes
= [\Eccube\Entity\Master\OrderStatus::CANCEL, \Eccube\Entity\Master\OrderStatus::PENDING, \Eccube\Entity\Master\OrderStatus::PROCESSING, \Eccube\Entity\Master\OrderStatus::RETURNED]
$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()
AdminController constructor.
public
__construct(
$authorizationChecker :
AuthorizationCheckerInterface
, $helper :
AuthenticationUtils
, $memberRepository :
MemberRepository
, $encoderFactory :
EncoderFactoryInterface
, $orderRepository :
OrderRepository
, $orderStatusRepository :
OrderStatusRepository
, $custmerRepository :
CustomerRepository
, $productRepository :
ProductRepository
, $pluginApiService :
PluginApiService
)
: mixed
Parameters
- $authorizationChecker : AuthorizationCheckerInterface
- $helper : AuthenticationUtils
- $memberRepository : MemberRepository
- $encoderFactory : EncoderFactoryInterface
- $orderRepository : OrderRepository
- $orderStatusRepository : OrderStatusRepository
- $custmerRepository : CustomerRepository
- $productRepository : ProductRepository
- $pluginApiService : PluginApiService
Return values
mixedlogin()
public
login(
$request :
Request
)
: mixed
Parameters
- $request : Request
Tags
Return values
mixedindex()
管理画面ホーム
public
index(
$request :
Request
)
: array
Parameters
- $request : Request
Tags
Return values
arraysale()
売上状況の取得
public
sale(
$request :
Request
)
: JsonResponse
Parameters
- $request : Request
Tags
Return values
JsonResponsechangePassword()
パスワード変更画面
public
changePassword(
$request :
Request
)
: RedirectResponse|array
Parameters
- $request : Request
Tags
Return values
RedirectResponse|arraysearchNonStockProducts()
在庫なし商品の検索結果を表示する.
public
searchNonStockProducts(
$request :
Request
)
: Response
Parameters
- $request : Request
Tags
Return values
ResponsesearchCustomer()
本会員の検索結果を表示する.
public
searchCustomer(
$request :
Request
)
: Response
Parameters
- $request : Request
Tags
Return values
ResponsegetOrderEachStatus()
protected
getOrderEachStatus(
$excludes :
array
)
: null|Request
Parameters
- $excludes : array
Return values
null|RequestgetSalesByDay()
protected
getSalesByDay(
$dateTime :
)
: array|mixed
Parameters
Tags
Return values
array|mixedgetSalesByMonth()
protected
getSalesByMonth(
$dateTime :
)
: array|mixed
Parameters
Tags
Return values
array|mixedcountNonStockProducts()
在庫切れ商品数を取得
protected
countNonStockProducts(
)
: mixed
Tags
Return values
mixedcountProducts()
商品数を取得
protected
countProducts(
)
: mixed
Tags
Return values
mixedcountCustomers()
本会員数を取得
protected
countCustomers(
)
: mixed
Tags
Return values
mixedgetData()
期間指定のデータを取得
protected
getData(
$fromDate :
Carbon
, $toDate :
Carbon
, $format :
)
: array
Parameters
Return values
arrayconvert()
期間毎にデータをまとめる
protected
convert(
$result :
, $fromDate :
Carbon
, $toDate :
Carbon
, $format :
)
: array
Parameters
Return values
arraysetEccubeConfig()
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.