EventsService
class EventsService implements EventsServiceInterface
Main services related to Events
Properties
private ConfigServiceInterface | $configService | Stores ConfigServiceInterface | |
private EntityManagerInterface | $em | Stores EntityManagerInterface | |
private EventFormFactoryInterface | $eventFormFactory | Stores EventFormFactoryInterface | |
private ServiceImageInterface | $serviceImage | Stores ServiceImageInterface | |
private ServiceSlugInterface | $serviceSlug | Stores ServiceSlugInterface |
Methods
__construct(ConfigServiceInterface $configService, EntityManagerInterface $em, EventFormFactoryInterface $eventFormFactory, ServiceImageInterface $serviceImage, ServiceSlugInterface $serviceSlug)
No description
Form
string
getFolderPictures()
Gets pictures folder from config
string
string
array
getEventsAll()
Gets all the Events, even those suppressed
array
getEventsNotFinished()
Gets all the Events not finished
Details
at line 56
__construct(ConfigServiceInterface $configService, EntityManagerInterface $em, EventFormFactoryInterface $eventFormFactory, ServiceImageInterface $serviceImage, ServiceSlugInterface $serviceSlug)
at line 88
Form
createForm(string $name, Event $eventObject)
Shortcut to call EventFormFactory to create Form
at line 96
defineImage(Event $eventObject)
Defines the image for the Event
at line 108
delete(Event $eventObject)
Deletes the Event
at line 122
string
getFolderPictures()
Gets pictures folder from config
at line 136
string
getPictureName(Event $eventObject)
Get filename for the picture
at line 144
string
getPicturePath(Event $eventObject)
Get full picture path
at line 152
array
getEventsAll()
Gets all the Events, even those suppressed
at line 163
array
getEventsNotFinished()
Gets all the Events not finished
at line 174
register(Event $eventObject)
Registers the Event