ProductController extends AbstractController
Table of Contents
Properties
$csvExportService
protected
CsvExportService
$csvExportService
$productClassRepository
protected
ProductClassRepository
$productClassRepository
$productImageRepository
protected
ProductImageRepository
$productImageRepository
$taxRuleRepository
protected
TaxRuleRepository
$taxRuleRepository
$categoryRepository
protected
CategoryRepository
$categoryRepository
$productRepository
protected
ProductRepository
$productRepository
$BaseInfo
protected
BaseInfo
$BaseInfo
$pageMaxRepository
protected
PageMaxRepository
$pageMaxRepository
$productStatusRepository
protected
ProductStatusRepository
$productStatusRepository
$tagRepository
protected
TagRepository
$tagRepository
$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()
ProductController constructor.
public
__construct(
$csvExportService :
CsvExportService
, $productClassRepository :
ProductClassRepository
, $productImageRepository :
ProductImageRepository
, $taxRuleRepository :
TaxRuleRepository
, $categoryRepository :
CategoryRepository
, $productRepository :
ProductRepository
, $baseInfoRepository :
BaseInfoRepository
, $pageMaxRepository :
PageMaxRepository
, $productStatusRepository :
ProductStatusRepository
, $tagRepository :
TagRepository
)
: mixed
Parameters
- $csvExportService : CsvExportService
- $productClassRepository : ProductClassRepository
- $productImageRepository : ProductImageRepository
- $taxRuleRepository : TaxRuleRepository
- $categoryRepository : CategoryRepository
- $productRepository : ProductRepository
- $baseInfoRepository : BaseInfoRepository
- $pageMaxRepository : PageMaxRepository
- $productStatusRepository : ProductStatusRepository
- $tagRepository : TagRepository
Return values
mixedindex()
public
index(
$request :
Request
[, $page_no :
mixed
= null ]
, $paginator :
Paginator
)
: mixed
Parameters
- $request : Request
- $page_no : mixed = null
- $paginator : Paginator
Tags
Return values
mixedloadProductClasses()
public
loadProductClasses(
$request :
Request
, $Product :
Product
)
: mixed
Parameters
- $request : Request
- $Product : Product
Tags
Return values
mixedaddImage()
public
addImage(
$request :
Request
)
: mixed
Parameters
- $request : Request
Tags
Return values
mixededit()
public
edit(
$request :
Request
[, $id :
mixed
= null ]
, $router :
RouterInterface
, $cacheUtil :
CacheUtil
)
: mixed
Parameters
- $request : Request
- $id : mixed = null
- $router : RouterInterface
- $cacheUtil : CacheUtil
Tags
Return values
mixeddelete()
public
delete(
$request :
Request
[, $id :
mixed
= null ]
, $cacheUtil :
CacheUtil
)
: mixed
Parameters
- $request : Request
- $id : mixed = null
- $cacheUtil : CacheUtil
Tags
Return values
mixedcopy()
public
copy(
$request :
Request
[, $id :
mixed
= null ]
)
: mixed
Parameters
- $request : Request
- $id : mixed = null
Tags
Return values
mixeddisplay()
public
display(
$request :
Request
[, $id :
mixed
= null ]
)
: mixed
Parameters
- $request : Request
- $id : mixed = null
Tags
Return values
mixedexport()
商品CSVの出力.
public
export(
$request :
Request
)
: StreamedResponse
Parameters
- $request : Request
Tags
Return values
StreamedResponsecreateProductCategory()
ProductCategory作成
private
createProductCategory(
$Product :
Product
, $Category :
Category
, $count :
int
)
: ProductCategory
Parameters
Return values
ProductCategorybulkProductStatus()
Bulk public action
public
bulkProductStatus(
$request :
Request
, $ProductStatus :
ProductStatus
, $cacheUtil :
CacheUtil
)
: RedirectResponse
Parameters
- $request : Request
- $ProductStatus : ProductStatus
- $cacheUtil : CacheUtil
Tags
Return values
RedirectResponsesetEccubeConfig()
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.