EventService
class EventService implements ApplicationAwareInterface (View source)
Traits
Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface
Constants
| EVENT_VERSION_RECENT | 
 | 
| EVENT_VERSION_APPROVED | 
 | 
| INTERVAL_VERSION | 
 | 
Properties
| protected Application | $app | from ApplicationAwareTrait | |
| protected | $entityManager | ||
| protected | $config | ||
| protected | $occurrenceFactory | ||
| protected | $eventCategory | ||
| protected | $dispatcher | 
Methods
No description
No description
No description
Returns a new calendar event version object, duplicated from the most recent one – or if the event has no version objects simply returns a new one.
No description
Handles generating occurrences with the default start and end times
Returns true if the difference between the event versions impacts repetitions and occurrences.
Details
        
                            
    setApplication(Application $app)
        
    
    Setter method for the application
        
                            
    __construct(EntityManagerInterface $entityManagerInterface, Repository $config, EventOccurrenceFactory $occurrenceFactory, EventCategory $eventCategory, EventDispatcher $dispatcher)
        
    
    No description
        
                            
    getByID($id, $retrieveVersion = self::EVENT_VERSION_APPROVED)
        
    
    No description
        
                            
    getVersionByID($id)
        
    
    No description
        
                            
    getVersionToModify(CalendarEvent $event, User $u)
        
    
    Returns a new calendar event version object, duplicated from the most recent one – or if the event has no version objects simply returns a new one.
        
                            
    addEventVersion(CalendarEvent $event, Calendar $calendar, CalendarEventVersion $version, $repetitions = array())
        
    
    No description
        
                            
    save(CalendarEvent $event)
        
    
    No description
        
                            
    approve(CalendarEventVersion $version)
        
    
    No description
        
                            
    unapprove(CalendarEvent $event)
        
    
    No description
        
                            
    duplicate(CalendarEvent $event, User $u, Calendar $calendar = null)
        
    
    No description
        
                            
    delete(CalendarEvent $event)
        
    
    No description
        
                            
    deleteVersion(CalendarEventVersion $version)
        
    
    No description
        
                            
    isRelatedTo(CalendarEvent $event1, CalendarEvent $event2)
        
    
    No description
        
                            
    generateDefaultOccurrences(CalendarEventVersion $version)
        
    
    Handles generating occurrences with the default start and end times
        
                            
    requireOccurrenceRegeneration($repetitions1, $repetitions2)
        
    
    Returns true if the difference between the event versions impacts repetitions and occurrences.