Fork me on Github

Class CalendR\Event\ Manager

Manage events and providers

Methods

__construct( array $providers = array(), null $instantiator = null)

array| EventInterface find( PeriodInterface $period, array $options = array())

find events that matches the given period (during or over)

addProvider( $name $name, ProviderInterface $provider)

Adds a provider to the provider stack

setCollectionInstantiator( callable $collectionInstantiator)

Sets the callable used to instantiate the event collection

ProviderInterface getProviders()

Details

public __construct( array $providers = array(), null $instantiator = null)

Parameters
array $providers
null $instantiator

public array| EventInterface find( PeriodInterface $period, array $options = array())

find events that matches the given period (during or over)

Parameters
PeriodInterface $period
array $options
Return Value
array| EventInterface

public addProvider( $name $name, ProviderInterface $provider)

Adds a provider to the provider stack

Parameters
$name $name
ProviderInterface $provider

public setCollectionInstantiator( callable $collectionInstantiator)

Sets the callable used to instantiate the event collection

Parameters
callable $collectionInstantiator

public ProviderInterface getProviders()

Return Value
ProviderInterface