AbstractCrudDashboardController
extends AbstractController
in package
AbstractYes
Table of Contents
Methods
- createOrEditEntity() : void
- getDetailDashboardGenerator() : AbstractDashboardGenerator
- getEntityClass() : string
- getEntityManager() : EntityManagerInterface
- getListDashboardGenerator() : AbstractDashboardGenerator
- getListUrl() : string
- renderDashboard() : Response
- deleteEntity() : void
- getActionForms() : array<string|int, FormInterface>|null
- getClassReflection() : ReflectionClass
- getClassRoute() : string|null
- getForms() : array<string|int, FormInterface>|null
- getViewForms() : array<string|int, FormInterface>|null
- handleForms() : RedirectResponse|null
Methods
createOrEditEntity()
public
createOrEditEntity(FormInterface $form) : void
Parameters
- $form : FormInterface
getDetailDashboardGenerator()
protected
abstract getDetailDashboardGenerator() : AbstractDashboardGenerator
Return values
AbstractDashboardGeneratorgetEntityClass()
protected
abstract getEntityClass() : string
Return values
stringgetEntityManager()
protected
abstract getEntityManager() : EntityManagerInterface
Return values
EntityManagerInterfacegetListDashboardGenerator()
protected
abstract getListDashboardGenerator() : AbstractDashboardGenerator
Return values
AbstractDashboardGeneratorgetListUrl()
protected
getListUrl() : string
Return values
stringrenderDashboard()
protected
renderDashboard(Request $request, DashboardType $type) : Response
Parameters
- $request : Request
- $type : DashboardType
Return values
ResponsedeleteEntity()
private
deleteEntity(CommonContentInterface|null $entity) : void
Parameters
- $entity : CommonContentInterface|null
getActionForms()
private
getActionForms(array<string|int, Action>|null $actions) : array<string|int, FormInterface>|null
Parameters
- $actions : array<string|int, Action>|null
Return values
array<string|int, FormInterface>|nullgetClassReflection()
private
getClassReflection() : ReflectionClass
Return values
ReflectionClassgetClassRoute()
private
getClassRoute() : string|null
Return values
string|nullgetForms()
private
getForms(array<string|int, View>|null $views, array<string|int, Action>|null $actions) : array<string|int, FormInterface>|null
Parameters
Return values
array<string|int, FormInterface>|nullgetViewForms()
private
getViewForms(array<string|int, View>|null $views) : array<string|int, FormInterface>|null
Parameters
- $views : array<string|int, View>|null
Return values
array<string|int, FormInterface>|nullhandleForms()
private
handleForms(array<string|int, FormInterface>|null $forms, Request $request[, bool $isDetailRoute = false ][, CommonContentInterface|null $entity = null ]) : RedirectResponse|null
Parameters
- $forms : array<string|int, FormInterface>|null
- $request : Request
- $isDetailRoute : bool = false
- $entity : CommonContentInterface|null = null