Fork me on Github

Class CalendR\Event\Provider\ Aggregate

This class provide multiple event providers support


Implements: ProviderInterface

Methods

__construct( array $providers)

Aggregate add( ProviderInterface $provider)

Adds a provider

array<EventInterface> getEvents( DateTime $begin, DateTime $end, array $options = array())

Return events that matches to $begin && $end $end date should be exclude

Details

public __construct( array $providers)

Parameters
array $providers
Exceptions
InvalidArgumentException

public Aggregate add( ProviderInterface $provider)

Adds a provider

Parameters
ProviderInterface $provider
Return Value
Aggregate

public array<EventInterface> getEvents( DateTime $begin, DateTime $end, array $options = array())

Return events that matches to $begin && $end $end date should be exclude

Parameters
DateTime $begin
DateTime $end
array $options
Return Value
array<EventInterface>