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

cloneObject(Event $eventObject)

Clones the object

Form
createForm(string $name, Event $eventObject)

Shortcut to call EventFormFactory to create Form

defineImage(Event $eventObject)

Defines the image for the Event

delete(Event $eventObject)

Deletes the Event

string
getFolderPictures()

Gets pictures folder from config

string
getPictureName(Event $eventObject)

Get filename for the picture

string
getPicturePath(Event $eventObject)

Get full picture path

array
getEventsAll()

Gets all the Events, even those suppressed

array
getEventsNotFinished()

Gets all the Events not finished

register(Event $eventObject)

Registers the Event

Details

at line 56
__construct(ConfigServiceInterface $configService, EntityManagerInterface $em, EventFormFactoryInterface $eventFormFactory, ServiceImageInterface $serviceImage, ServiceSlugInterface $serviceSlug)

Parameters

ConfigServiceInterface $configService
EntityManagerInterface $em
EventFormFactoryInterface $eventFormFactory
ServiceImageInterface $serviceImage
ServiceSlugInterface $serviceSlug

at line 74
Event cloneObject(Event $eventObject)

Clones the object

Parameters

Event $eventObject

Return Value

Event

at line 88
Form createForm(string $name, Event $eventObject)

Shortcut to call EventFormFactory to create Form

Parameters

string $name
Event $eventObject

Return Value

Form

at line 96
defineImage(Event $eventObject)

Defines the image for the Event

Parameters

Event $eventObject

at line 108
delete(Event $eventObject)

Deletes the Event

Parameters

Event $eventObject

at line 122
string getFolderPictures()

Gets pictures folder from config

Return Value

string

at line 136
string getPictureName(Event $eventObject)

Get filename for the picture

Parameters

Event $eventObject

Return Value

string

at line 144
string getPicturePath(Event $eventObject)

Get full picture path

Parameters

Event $eventObject

Return Value

string

at line 152
array getEventsAll()

Gets all the Events, even those suppressed

Return Value

array

at line 163
array getEventsNotFinished()

Gets all the Events not finished

Return Value

array

at line 174
register(Event $eventObject)

Registers the Event

Parameters

Event $eventObject